Azure Kubernetes Service (AKS) Upgrades

We probably should break the upgrades into 3 parts, Kubernetes version upgrade, node image version upgrade (security patching) and Azure-associated service upgrade.

Kubernetes Version Upgrade

AKS Supported Versions

  • 17 would be the minor version (Gets releases 9–12 months after 19)
  • 9 being the patch version (Gets releases the fastest as weekly)
  • 1.16.x
  • 1.15.x
  • 1.17.b
  • 1.16.c
  • 1.16.d
  • 1.15.e
  • 1.15.f
az aks get-versions -l <location> -o table
az aks show -g <resource group name> -n <AKS cluster name>| grep -E "orchestratorVersion|kubernetesVersion"
kubectl get nodes -o wide
az aks get-upgrades --resource-group <RG name> --name <Cluster name> --output table
  • The max amount of Pods on each node — P
  • The private IP addresses required N + (N+1)*P.
az aks upgrade \
--resource-group <RG name> \
--name <AKS cluster name> \
--kubernetes-version <target K8s version> \
--control-plane-only
az aks upgrade \
--resource-group <RG name> \
--name <AKS cluster name> \
--kubernetes-version <target K8s version>

Node Image Version Upgrade

Security Concerns

az aks nodepool show \
--resource-group <RG name> \
--cluster-name <AKS cluster name> \
--name <target node pool name> \
--query nodeImageVersion
az aks nodepool get-upgrades \
--resource-group <RG name> \
--cluster-name <AKS cluster name> \
--nodepool-name <target node pool name>
az aks nodepool upgrade \
--resource-group <RG name> \
--cluster-name <AKS cluster name> \
--name <target node pool name> \
--node-image-only

Azure-Associated Service Upgrade

Uptime SLA

az aks show -g <RG name> -n <AKS cluster name> | grep sku -A5 -B5
az aks update -g <RG name> -n <AKS cluster name> - uptime-sla
az ppg create -g <RG name> -n <PPG name> -l <location> -t <SKU>
az aks nodepool add \
--resource-group <RG name> \
--cluster-name <AKS cluster name> \
--name <node pool name> \
--node-count <amount> \
--ppg <PPG resource ID from above command>

Learning new things about Kubernetes every day. Hopefully, the learning notes could help people on the same journey!