@@ -442,26 +442,35 @@ byocni-cluster-up: ## Create complete BYO CNI cluster with CNS and CNI (default:
442442 @echo " Creating BYO CNI cluster with CNS and $( CNI_TYPE) ..."
443443 @echo " Variables: CLUSTER=$( CLUSTER) , CNS_VERSION=$( CNS_VERSION) , CNI_TYPE=$( CNI_TYPE) "
444444 @$(MAKE ) validate-cni-type
445+ ifeq ($(CNI_TYPE ) ,azurecni)
446+ @$(MAKE) overlay-up
447+ else
445448 @$(MAKE) overlay-byocni-nokubeproxy-up
449+ endif
446450 @echo "Cluster created successfully. Deploying CNS..."
447451 @$(MAKE) deploy-cns
448452 @echo "CNS deployed successfully. Deploying $(CNI_TYPE)..."
449453ifeq ($(CNI_TYPE ) ,cilium)
450454 @$(MAKE) deploy-cilium
455+ else ifeq ($(CNI_TYPE),azurecni)
456+ @echo "Azure CNI is already configured in the cluster. No additional CNI deployment needed."
451457else
452- @echo "Warning: CNI_TYPE=$(CNI_TYPE) not supported yet. Only cilium is currently supported. "
453- @echo "Available CNI types: cilium"
458+ @echo "Warning: CNI_TYPE=$(CNI_TYPE) not supported yet."
459+ @echo "Available CNI types: cilium, azurecni "
454460 @exit 1
455461endif
456462 @echo "BYO CNI cluster setup completed successfully!"
457463
458464validate-cni-type : # # Validate the CNI type
459465ifeq ($(CNI_TYPE ) ,cilium)
460466 @echo "✓ CNI type validation passed: $(CNI_TYPE)"
467+ else ifeq ($(CNI_TYPE),azurecni)
468+ @echo "✓ CNI type validation passed: $(CNI_TYPE)"
461469else
462470 @echo "✗ Error: CNI_TYPE=$(CNI_TYPE) is not supported."
463- @echo "Available CNI types: cilium"
471+ @echo "Available CNI types: cilium, azurecni "
464472 @echo "Example: make byocni-cluster-up CNI_TYPE=cilium"
473+ @echo "Example: make byocni-cluster-up CNI_TYPE=azurecni"
465474 @exit 1
466475endif
467476
@@ -504,14 +513,15 @@ byocni-cluster-vars: ## Show variables for BYO CNI cluster setup
504513 @echo " REGION=$( REGION) "
505514 @echo " SUB=$( SUB) "
506515 @echo " VNET=$( VNET) "
516+ @echo " VM_SIZE=$( VM_SIZE) "
507517 @echo " "
508518 @echo " CNI configuration:"
509519 @echo " CNI_TYPE=$( CNI_TYPE) "
510520 @echo " "
511521 @echo " CNS configuration:"
512522 @echo " CNS_VERSION=$( CNS_VERSION) "
513523 @echo " AZURE_IPAM_VERSION=$( AZURE_IPAM_VERSION) "
514- @echo " CNS_IMAGE_REPO=$( CNS_IMAGE_REPO) "
524+ @echo " CNS_IMAGE_REPO=$( CNS_IMAGE_REPO) (MCR/ACR - affects CNS image paths) "
515525 @echo " "
516526 @echo " Cilium configuration:"
517527 @echo " CILIUM_DIR=$( CILIUM_DIR) "
@@ -520,9 +530,15 @@ byocni-cluster-vars: ## Show variables for BYO CNI cluster setup
520530 @echo " IPV6_HP_BPF_VERSION=$( IPV6_HP_BPF_VERSION) "
521531 @echo " DUALSTACK=$( DUALSTACK) "
522532 @echo " "
533+ @echo " Image registry options:"
534+ @echo " - MCR: mcr.microsoft.com/containernetworking"
535+ @echo " - ACR: acnpublic.azurecr.io (default for Cilium)"
536+ @echo " - Custom: your-registry.azurecr.io/path"
537+ @echo " "
523538 @echo " Repository root:"
524539 @echo " REPO_ROOT=$( REPO_ROOT) "
525540 @echo " "
526541 @echo " Example usage:"
527542 @echo " make byocni-cluster-up CLUSTER=my-cluster SUB=<subscription-id>"
543+ @echo " make byocni-cluster-up CLUSTER=my-cluster SUB=<subscription-id> CNI_TYPE=azurecni"
528544 @echo " make byocni-cluster-up CLUSTER=my-cluster SUB=<subscription-id> CNS_VERSION=v1.6.0 CILIUM_DIR=1.16 CILIUM_VERSION_TAG=v1.16.5"
0 commit comments