Prerequisites
To upgrade Kubernetes on Azure, you must have a Unix or Linux terminal with the following: Use environment variables to set the values of IDs, names, and labels. This simplifies the commands you’ll run when you upgrade:Get cluster credentials
-
If you aren’t already signed in to Azure CLI, run:
-
Protect your current kubeconfig from being overwritten:
-
Get the remote kubeconfig:
Disable the disruption budgets
You must temporarily disable thePodDisruptionBudget (PDB) for certain services. To do this, back up the PDBs, delete the original PDBs, then update Kubernetes and restore the PDBs from the backup after the update is complete.
-
Back up the PDBs:
-
Delete the PDBs:
Update the cluster
-
Check for available AKS cluster upgrades:
-
Run the cluster update (this might take several minutes to complete):
Kubernetes 1.24
If you upgrade to Kubernetes 1.24, add a path annotation for thenginx-ingress-controller probe: