Microsot Azure Kubernetes Update VErsion

Alessandro Perozzo 0 Reputation points
2024-07-30T07:59:33.2233333+00:00

In our company account, we are in the process of updating the version of kubernetes from 1.24.1 (current) to 1.27.x. We are currently using a node pool running ubuntu version 18.04, this version from Azure documentation does not support kubernetes version 1.27.x. The problem is that currently via the azure portal itself we can neither upgrade nor create a new node pool with ubuntu version 22.04. Can you tell us which is the correct way to proceed with the upgrade, without incurring in downtime?

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.
2,156 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Nikhil Duserla 2,830 Reputation points Microsoft Vendor
    2024-07-31T09:04:04.73+00:00

    Hi Alessandro Perozzo,

    Welcome to the Microsoft Q&A Platform! Thank you for asking your question here.

    First, upgrade Kubernetes to version 1.27.x while continuing to use the existing node pool with Ubuntu 18.04. This will update the control plane to the new version, allowing you to confirm that everything is functioning correctly.

    Create a new node pool with Ubuntu 22.04. This will allow you to create a new node pool without affecting the existing one. Once the new node pool is created, migrate all workloads. Drain and cordon the old node pool running Ubuntu 18.04 to prevent new pods from being scheduled on it.

    Refer to the document: https://learn.microsoft.com/en-us/azure/aks/supported-kubernetes-versions?tabs=azure-cli#can-i-skip-multiple-aks-versions-during-cluster-upgrade%22https://learn.microsoft.com/en-us/azure/aks/supported-kubernetes-versions?tabs=azure-cli#can-i-skip-multiple-aks-versions-during-cluster-upgrade%22

    Once the upgrade is complete, you can delete the old node pool running Ubuntu 18.04.

    Therefore, it is a safe way to create a new cluster first and then deploy existing workloads to the new cluster and see if they are working properly.

    If you have any further queries, do let us know.

    If the answer is helpful, please click "Accept Answer" and "Upvote it."


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.