How to Updates on Azure Kubernetes Cluster (AKS)

In this article, I will show you how to install updated and update an Azure Managed Kubernetes Cluster (AKS) using the Azure Portal or the Azure CLI.

I have been using my AKS cluster for two months now and realized that I need to do some maintenance work and install the latest updates.

Microsoft AKS give us the option to install and decide which version of Kubernetes to use by controlling which version to run.

In my case, I have been running 1.9.6 for the last few weeks and today I will upgrade my cluster.

Get Started

Below, I will show you how to use the Azure CLI AKS command line tool to do it and at the end of the post you will see how to use the portal.

I have to say that it is much easier to use the portal, however, using Azure CLI expose you to the AKS commands.

The first command I will run will be the list command below which will provide me with my AKS cluster details that will like cluster name and Resource group.

az aks list

One I have AKS cluster details and Resource group I can run the command below to check which version my AKS cluster is running and which updates are available to me.

az aks get-upgrades --name AKSCluster --resource-group aks-cluster --output table

As you can see version 1.10.5 is available for install and I will go ahead with the command below and install it.

az aks upgrade --name AKSCluster --resource-group aks-cluster --kubernetes-version 1.10.5

Once the installation is completed I will run the line below to check the version again

az aks get-upgrades --name AKSCluster --resource-group aks-cluster --output table

Using the Azure Portal

To update to the latest Kubernetes version using the Microsoft Azure portal, I will open the Kubernetes Services page and click on my AKS cluster

In cluster menu, I will click on Upgrade and select the version from the dropdown menu and click save

When done, AKS will show the message below.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.