From 7a5b2e45f494a0f1d1e9c1e70029e795225024c9 Mon Sep 17 00:00:00 2001 From: QxBytes Date: Wed, 26 Feb 2025 14:46:36 -0800 Subject: [PATCH] add vnet scale cilium stage --- .pipelines/pipeline.yaml | 20 +++++++++++++++++++- hack/aks/Makefile | 10 +++++++--- 2 files changed, 26 insertions(+), 4 deletions(-) diff --git a/.pipelines/pipeline.yaml b/.pipelines/pipeline.yaml index 2303749772..8ab29da7e6 100644 --- a/.pipelines/pipeline.yaml +++ b/.pipelines/pipeline.yaml @@ -227,13 +227,26 @@ stages: - template: singletenancy/cilium/cilium-e2e-job-template.yaml parameters: name: "cilium_e2e" - displayName: Cilium + displayName: Cilium Podsubnet clusterType: swift-byocni-nokubeproxy-up clusterName: "ciliume2e" vmSize: Standard_B2ms k8sVersion: "" dependsOn: "containerize" + # Cilium Podsubnet Vnet Scale E2E tests + - template: singletenancy/cilium/cilium-e2e-job-template.yaml + parameters: + name: "cilium_vnetscale_e2e" + displayName: Cilium Podsubnet Vnet Scale Ubuntu + os: linux + clusterType: vnetscale-swift-byocni-nokubeproxy-up + clusterName: "ciliumvscalee2e" + vmSize: Standard_B2ms + k8sVersion: "" + dependsOn: "containerize" + + # Cilium Nodesubnet E2E tests - template: singletenancy/cilium-nodesubnet/cilium-nodesubnet-e2e-job-template.yaml parameters: @@ -400,6 +413,7 @@ stages: - azure_overlay_stateless_e2e - aks_swift_e2e - cilium_e2e + - cilium_vnetscale_e2e - cilium_nodesubnet_e2e - cilium_overlay_e2e - cilium_h_overlay_e2e @@ -422,6 +436,10 @@ stages: name: cilium_e2e clusterName: "ciliume2e" region: $(REGION_AKS_CLUSTER_TEST) + cilium_vnetscale_e2e: + name: cilium_vnetscale_e2e + clusterName: "ciliumvscalee2e" + region: $(REGION_AKS_CLUSTER_TEST) cilium_nodesubnet_e2e: name: cilium_nodesubnet_e2e clusterName: "cilndsubnete2e" diff --git a/hack/aks/Makefile b/hack/aks/Makefile index 7f4513cae2..4670702a23 100644 --- a/hack/aks/Makefile +++ b/hack/aks/Makefile @@ -184,7 +184,7 @@ overlay-up: rg-up overlay-net-up ## Brings up an Overlay AzCNI cluster --yes @$(MAKE) set-kubeconf -swift-byocni-up: rg-up swift-net-up ## Bring up a SWIFT BYO CNI cluster +swift-byocni-up: rg-up swift-net-up ## Bring up a SWIFT (Podsubnet) BYO CNI cluster $(AZCLI) aks create -n $(CLUSTER) -g $(GROUP) -l $(REGION) \ --auto-upgrade-channel $(AUTOUPGRADE) \ --node-os-upgrade-channel $(NODEUPGRADE) \ @@ -203,7 +203,7 @@ ifeq ($(OS),windows) endif @$(MAKE) set-kubeconf -swift-byocni-nokubeproxy-up: rg-up swift-net-up ## Bring up a SWIFT BYO CNI cluster without kube-proxy +swift-byocni-nokubeproxy-up: rg-up swift-net-up ## Bring up a SWIFT (Podsubnet) BYO CNI cluster without kube-proxy $(AZCLI) aks create -n $(CLUSTER) -g $(GROUP) -l $(REGION) \ --auto-upgrade-channel $(AUTOUPGRADE) \ --node-os-upgrade-channel $(NODEUPGRADE) \ @@ -290,10 +290,11 @@ vnetscale-swift-byocni-up: rg-up vnetscale-swift-net-up ## Bring up a Vnet Scale --pod-subnet-id /subscriptions/$(SUB)/resourceGroups/$(GROUP)/providers/Microsoft.Network/virtualNetworks/$(VNET)/subnets/podnet \ --no-ssh-key \ --os-sku $(OS_SKU) \ + --pod-ip-allocation-mode StaticBlock \ --yes @$(MAKE) set-kubeconf -vnetscale-swift-byocni-nokubeproxy-up: rg-up vnetscale-swift-net-up ## Bring up a Vnet Scale SWIFT BYO CNI cluster without kube-proxy +vnetscale-swift-byocni-nokubeproxy-up: rg-up vnetscale-swift-net-up ## Bring up a Vnet Scale SWIFT (Podsubnet) BYO CNI cluster without kube-proxy $(AZCLI) aks create -n $(CLUSTER) -g $(GROUP) -l $(REGION) \ --auto-upgrade-channel $(AUTOUPGRADE) \ --node-os-upgrade-channel $(NODEUPGRADE) \ @@ -307,6 +308,7 @@ vnetscale-swift-byocni-nokubeproxy-up: rg-up vnetscale-swift-net-up ## Bring up --no-ssh-key \ --os-sku $(OS_SKU) \ --kube-proxy-config $(KUBE_PROXY_JSON_PATH) \ + --pod-ip-allocation-mode StaticBlock \ --yes @$(MAKE) set-kubeconf @@ -324,6 +326,7 @@ vnetscale-swift-cilium-up: rg-up vnetscale-swift-net-up ## Bring up a Vnet Scale --vnet-subnet-id /subscriptions/$(SUB)/resourceGroups/$(GROUP)/providers/Microsoft.Network/virtualNetworks/$(VNET)/subnets/nodenet \ --pod-subnet-id /subscriptions/$(SUB)/resourceGroups/$(GROUP)/providers/Microsoft.Network/virtualNetworks/$(VNET)/subnets/podnet \ --no-ssh-key \ + --pod-ip-allocation-mode StaticBlock \ --yes @$(MAKE) set-kubeconf @@ -339,6 +342,7 @@ vnetscale-swift-up: rg-up vnetscale-swift-net-up ## Bring up a Vnet Scale SWIFT --vnet-subnet-id /subscriptions/$(SUB)/resourceGroups/$(GROUP)/providers/Microsoft.Network/virtualNetworks/$(VNET)/subnets/nodenet \ --pod-subnet-id /subscriptions/$(SUB)/resourceGroups/$(GROUP)/providers/Microsoft.Network/virtualNetworks/$(VNET)/subnets/podnet \ --no-ssh-key \ + --pod-ip-allocation-mode StaticBlock \ --yes @$(MAKE) set-kubeconf