Integration K8s AKS runs NSM system tests on AKS.
-
Install az
-
Set envs
AZURE_CLUSTER_NAME
AZURE_RESOURCE_GROUP
AZURE_SERVICE_PRINCIPAL
AZURE_SERVICE_PRINCIPAL_SECRET
AZURE_TENANT
Run this command to create AKS
cluster.
az aks create \
--resource-group "$AZURE_RESOURCE_GROUP" \
--name "$AZURE_CLUSTER_NAME" \
--node-count 2 \
--node-vm-size Standard_B2s \
--generate-ssh-keys \
--debug
az aks wait \
--name "$AZURE_CLUSTER_NAME" \
--resource-group "$AZURE_RESOURCE_GROUP" \
--created > /dev/null
Run this command to delete AKS
cluster.
az aks delete \
--name "$AZURE_CLUSTER_NAME" \
--resource-group "$AZURE_RESOURCE_GROUP" \
--yes