How to upgrade OS of nodes in AKS?

Andrew Lazurkevych 35 Reputation points
2023-03-15T10:34:53.99+00:00

I have 2 AKS clusters (dev and prod). All nodes are running ubuntu 18.04. I want to upgrade the nodes from ubuntu 18.04 to 22.04. How can I do it? Or is it easier to create a new cluster?

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

Accepted answer
  1. Akram Kathimi 1,046 Reputation points Microsoft Employee
    2023-03-15T10:53:07.79+00:00

    Hi @Andrew Lazurkevych,

    Thank you for your question.

    Please note that Ubuntu 22.04 images are available for AKS clusters starting version 1.25.

    You can find this mentioned here: https://azure.microsoft.com/en-us/updates/generally-available-aks-support-for-ubuntu-2204/.

    Therefore, I suggest upgrading the AKS cluster to v.1.25 by following this doc: https://learn.microsoft.com/en-us/azure/aks/upgrade-cluster?tabs=azure-cli.

    Please Accept the answer if the information helped you. This will help us and others in the community as well.

    2 people found this answer helpful.

2 additional answers

Sort by: Most helpful
  1. Olumide Oluyisola 16 Reputation points
    2023-05-25T22:10:14.9766667+00:00

    Hi,
    Does upgrading AKS to version 1.25 upgrade the nodes' OS imageReference to Ubuntu 22.04 automatically?


  2. Saad Hessane 0 Reputation points
    2023-09-18T13:32:27.4266667+00:00

    Hi,

    I just did the update. Updating to 1.25 updates also the OS used by the default node pool to Ubuntu 2204.

    0 comments No comments