Skip to content

Commit

Permalink
Merge pull request #4228 from lzhecheng/add-slb-vmas-aks-pipeline
Browse files Browse the repository at this point in the history
[AKS pipeline] Add a slb VMAS pipeline
  • Loading branch information
k8s-ci-robot authored Jul 5, 2023
2 parents 6948221 + 3ad44dc commit ef1a8ff
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 0 deletions.
1 change: 1 addition & 0 deletions .pipelines/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
| pipeline name | branch master status | trigger events |
|--------------------------------|-------------------------------------------------|-----------------------|
| aks-basic-lb-e2e | [![Build Status](https://msazure.visualstudio.com/CloudNativeCompute/_apis/build/status/AKS/cloud-provider-azure/kubernetes-sigs.cloud-provider-azure.basic_lb?branchName=master)](https://msazure.visualstudio.com/CloudNativeCompute/_build?definitionId=282180&branchName=master) | PR merged |
| aks-vmas-e2e | [![Build Status](https://msazure.visualstudio.com/CloudNativeCompute/_apis/build/status/AKS/cloud-provider-azure/kubernetes-sigs.cloud-provider-azure.vmas?branchName=master)](https://msazure.visualstudio.com/CloudNativeCompute/_build?definitionId=324017&branchName=master) | once per day |
| aks-autoscaling-e2e | [![Build Status](https://msazure.visualstudio.com/CloudNativeCompute/_apis/build/status/AKS/cloud-provider-azure/kubernetes-sigs.cloud-provider-azure.autoscaling?branchName=master)](https://msazure.visualstudio.com/CloudNativeCompute/_build?definitionId=282187&branchName=master) | once per day |
| aks-autoscaling-multipool-e2e | [![Build Status](https://msazure.visualstudio.com/CloudNativeCompute/_apis/build/status/AKS/cloud-provider-azure/kubernetes-sigs.cloud-provider-azure.autoscaling-multipool?branchName=master)](https://msazure.visualstudio.com/CloudNativeCompute/_build?definitionId=282222&branchName=master) | once per day |
| daily-gc | [![Build Status](https://msazure.visualstudio.com/CloudNativeCompute/_apis/build/status/AKS/cloud-provider-azure/kubernetes-sigs.cloud-provider-azure.gc?branchName=master)](https://msazure.visualstudio.com/CloudNativeCompute/_build?definitionId=282223&branchName=master) | once per day |
41 changes: 41 additions & 0 deletions .pipelines/run-vmas-e2e.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
schedules:
- cron: "0 20 * * *"
displayName: Daily AKS VMAS E2E Test
branches:
include:
- master

trigger: none

pr: none

pool:
vmImage: ubuntu-latest

variables:
- template: var-e2e.yml

stages:
- stage: run_vmas_e2e
dependsOn: []
jobs:
- job: build_push_ccm_image_job
timeoutInMinutes: 30
steps:
- template: ./ccm-image.yml
- job: build_push_cnm_image_job
timeoutInMinutes: 30
steps:
- template: ./cnm-image.yml
- job: create_aks_cluster_and_run_tests_job
dependsOn: [build_push_ccm_image_job, build_push_cnm_image_job]
timeoutInMinutes: 300
steps:
- task: GoTool@0
inputs:
version: '1.19'
- bash: |
CLUSTER_TYPE="vmas"
echo "##vso[task.setvariable variable=CLUSTER_TYPE]${CLUSTER_TYPE}"
displayName: set cluster type
- template: run-e2e.yml
3 changes: 3 additions & 0 deletions .pipelines/scripts/run-e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ if [[ -z "${CLUSTER_CONFIG_PATH:-}" ]]; then
elif [[ "${CLUSTER_TYPE:-}" == "autoscaling-multipool" ]]; then
CLUSTER_CONFIG_PATH="${REPO_ROOT}/.pipelines/templates/autoscaling-multipool.json"
export AZURE_LOADBALANCER_SKU=standard
elif [[ "${CLUSTER_TYPE:-}" == "vmas" ]]; then
CLUSTER_CONFIG_PATH="${REPO_ROOT}/.pipelines/templates/slb-vmas.json"
export AZURE_LOADBALANCER_SKU=standard
fi
fi

Expand Down
25 changes: 25 additions & 0 deletions .pipelines/templates/slb-vmas.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"id": "{AKS_CLUSTER_ID}",
"name": "{CLUSTER_NAME}",
"location": "{AZURE_LOCATION}",
"type": "Microsoft.ContainerService/ManagedClusters",
"properties": {
"kubernetesVersion": "{KUBERNETES_VERSION}",
"dnsPrefix": "aks",
"agentPoolProfiles": [
{
"name": "agentpool1",
"count": 3,
"mode" : "System",
"vmSize": "Standard_DS2_v2",
"osType": "Linux",
"type": "AvailabilitySet"
}
],
"servicePrincipalProfile": {
"clientId": "{AZURE_CLIENT_ID}",
"secret": "{AZURE_CLIENT_SECRET}"
},
"encodedCustomConfiguration": "{CUSTOM_CONFIG}"
}
}

0 comments on commit ef1a8ff

Please sign in to comment.