Upgraded was performed against the Azure Kubernetes Service (PROD) from v1.21.9 to v1.22.11 to ensure are using a supported release of AKS.
Check for the appropriate Kubernetes release:
az aks get-versions -l canadacentral -o table
Note: Ensure only updating to a +1 major release
Upgrade the control plane:
az aks upgrade -g managed-prod-cc-00-aks -n <clustername>-aks --control-plane-only -k 1.22.11
Note: Ensure the control plane is fully functional before continuing by checking kubectl version.
Upgrade the node pools:
az aks nodepool upgrade -g managed-prod-cc-00-aks --cluster-name <clustername>-aks -n nodepool1 -k 1.22.11 --max-surge 1
The way the AKS upgrade works is it brings in the number of surge vms, drains the old vms, and reimages them.
Note: When the cluster size is small best to set max surge to only do one virtual machine at a time.
Last updated: November 6, 2022 at 4:50 PM UTC