AKS kubernets version upgrade

Yongchao Liu (Neusoft America Inc) 191 Reputation points Microsoft External Staff
2022-01-04T02:42:11.65+00:00

162045-image.png

  1. az aks nodepool upgrade \
    --resource-group myResourceGroup \
    --cluster-name myAKSCluster \
    --name mynodepool \
    --kubernetes-version KUBERNETES_VERSION \
    --no-wait
    2.162048-image.png
    162112-image.png

When I create a new node pool, the interface prompts me to update Kubernetes,

I would like to ask whether there are two ways to update?

Will the update cause the current service to stop?

Thanks.

Azure Kubernetes Service
Azure Kubernetes Service
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,448 questions
0 comments No comments
{count} votes

Accepted answer
  1. Praveen Prabhakaran 546 Reputation points Microsoft Employee
    2022-01-04T03:28:29.78+00:00

    @Yongchao Liu (Neusoft America Inc)

    AKS version upgrade has updates in 2 components. the control plane upgrade and the nodepool. in your case the control itself is running on an unsupported version 1.19.9. nodepool version must be same or less than the CP version hence you are not able to add a new node pool. to fix this please go to cluster--> overview--> click on Kubernetes version-->upgrade version and select one of the supported version and upgrade the control plane only. the control plane upgrade doesn't have any downtime for your application. once that is upgraded you should be able to add new nodepools.

    161979-image.png

    you must also consider the node pool upgrade of your existing node pool which is running with 1.19.9. typically, nodepool upgrade also doesn't have any downtime if the number of replicas and PDBs are configured correctly. but if you have prod workloads you can schedule the activity in non working hours.

    https://learn.microsoft.com/en-us/azure/aks/upgrade-cluster


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.