Skip to content

Commit

Permalink
ci: add CNIv2 testing for different proc/OS (#2230)
Browse files Browse the repository at this point in the history
* ci: proc/os load tests

* ci: update deprecated param

* ci: update naming

* ci: add other proc/os load tests

* ci: add other proc/os load tests

* remove ubuntu18 test

* remove redundant test

* fix template call

* add infiniband test, arm binary

* fix rdma node name, build

* update RDMA node count for quota

* force pipeline permissions

* undo force permissions

* remove hardcoding

* add os as parameter for cniv1

* set default osSKU

* merge variable name change

* set default OSSKU

* set default OSSKU

---------

Signed-off-by: jshr-w <[email protected]>
  • Loading branch information
jshr-w authored Sep 29, 2023
1 parent 9200af8 commit 4423a94
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ parameters:
nodeCount: ""
vmSize: ""
vmSizeWin: ""
osSKU: Ubuntu

steps:
- task: AzureCLI@1
Expand All @@ -15,13 +16,13 @@ steps:
inlineScript: |
set -ex
make -C ./hack/aks azcfg AZCLI=az REGION=${{ parameters.region }}
make -C ./hack/aks ${{ parameters.clusterType }} \
AZCLI=az REGION=${{ parameters.region }} SUB=$(SUB_AZURE_NETWORK_AGENT_BUILD_VALIDATIONS) \
CLUSTER=${{ parameters.clusterName }} NODE_COUNT=${{ parameters.nodeCount }} \
VM_SIZE=${{ parameters.vmSize }} VM_SIZE_WIN=${{ parameters.vmSizeWin }} \
WINDOWS_USERNAME=${WINDOWS_USERNAME} WINDOWS_PASSWORD=${WINDOWS_PASSWORD}
WINDOWS_USERNAME=${WINDOWS_USERNAME} WINDOWS_PASSWORD=${WINDOWS_PASSWORD} \
OS_SKU=${{parameters.osSKU}}
echo "Cluster successfully created"
name: "CreateAksCluster"
displayName: "Create AKS Cluster"
58 changes: 57 additions & 1 deletion .pipelines/cni/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,22 @@ stages:
name: $(name)
os: $(os)
os_version: $(os_version)
- job: containerize_linux_arm64
displayName: Build Images
pool:
name: "$(BUILD_POOL_NAME_LINUX_ARM64)"
strategy:
matrix:
cni_dropgz_test_linux_arm64:
arch: arm64
name: cni-dropgz-test
os: linux
steps:
- template: ../containers/container-template.yaml
parameters:
arch: $(arch)
name: $(name)
os: $(os)

- stage: binaries
displayName: Build Binaries
Expand Down Expand Up @@ -93,7 +109,7 @@ stages:
matrix:
cni_dropgz_test:
name: cni-dropgz-test
platforms: linux/amd64 windows/amd64
platforms: linux/amd64 linux/arm64 windows/amd64
steps:
- template: ../containers/manifest-template.yaml
parameters:
Expand Down Expand Up @@ -153,6 +169,34 @@ stages:
vmSize: ${VM_SIZE}
arch: amd64

- template: singletenancy/linux-cniv2-template.yaml
parameters:
name: mariner_linux_overlay
clusterType: overlay-byocni-up
clusterName: mariner-cniv2-overlay
nodeCount: ${NODE_COUNT_LINUX}
vmSize: ${VM_SIZE}
arch: amd64
osSKU: AzureLinux

- template: singletenancy/linux-cniv2-template.yaml
parameters:
name: arm_linux_overlay
clusterType: overlay-byocni-up
clusterName: arm-cniv2-overlay
nodeCount: ${NODE_COUNT_LINUX}
vmSize: Standard_D8ps_v5
arch: arm64

- template: singletenancy/linux-cniv2-template.yaml
parameters:
name: rdma_linux_overlay
clusterType: overlay-byocni-up
clusterName: rdma-cniv2-overlay
nodeCount: 2
vmSize: Standard_NC24r
arch: amd64

- stage: delete_resources
displayName: "Delete Resources"
pool:
Expand All @@ -164,6 +208,9 @@ stages:
- linux_cniv1
- linux_podsubnet
- linux_overlay
- mariner_linux_overlay
- arm_linux_overlay
- rdma_linux_overlay
- setup
variables:
commitID: $[ stagedependencies.setup.env.outputs['SetEnvVars.commitID'] ]
Expand All @@ -189,6 +236,15 @@ stages:
linux_overlay:
name: linux_overlay
clusterName: linux-cniv2-overlay
mariner_linux_overlay:
name: mariner_linux_overlay
clusterName: mariner-cniv2-overlay
arm_linux_overlay:
name: arm_linux_overlay
clusterName: arm-cniv2-overlay
rdma_linux_overlay:
name: rdma_linux_overlay
clusterName: rdma-cniv2-overlay
steps:
- task: AzureCLI@1
inputs:
Expand Down
2 changes: 2 additions & 0 deletions .pipelines/cni/singletenancy/cniv1-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ parameters:
scaleup: 100
iterations: 3
os_version: ""
osSKU: Ubuntu

# CNIv1
# + Should be able to scale up/down the pods successfully certain number of times.
Expand Down Expand Up @@ -42,6 +43,7 @@ stages:
vmSize: ${{ parameters.vmSize }}
vmSizeWin: ${{ parameters.vmSizeWin }}
region: $(LOCATION)
osSKU: ${{ parameters.osSKU }}

- stage: ${{ parameters.name }}
variables:
Expand Down
2 changes: 2 additions & 0 deletions .pipelines/cni/singletenancy/linux-cniv2-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ parameters:
os: linux
arch: ""
testDropgz: true
osSKU: Ubuntu

# + Should be able to scale up/down the pods successfully certain number of times.
# + Node reboot scenarios should be covered.
Expand All @@ -34,6 +35,7 @@ stages:
nodeCount: ${{ parameters.nodeCount }}
vmSize: ${{ parameters.vmSize }}
region: $(LOCATION)
osSKU: ${{ parameters.osSKU }}

- stage: ${{ parameters.name }}
variables:
Expand Down
1 change: 1 addition & 0 deletions hack/aks/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ overlay-byocni-up: rg-up overlay-net-up ## Brings up an Overlay BYO CNI cluster
--pod-cidr 192.168.0.0/16 \
--vnet-subnet-id /subscriptions/$(SUB)/resourceGroups/$(GROUP)/providers/Microsoft.Network/virtualNetworks/$(VNET)/subnets/nodenet \
--no-ssh-key \
--os-sku $(OS_SKU) \
--yes
@$(MAKE) set-kubeconf

Expand Down

0 comments on commit 4423a94

Please sign in to comment.