Cluster upgrade Azure Kubernetes

As the most popular container dispatch management platform, kubernetes community is very active, almost every quarter will publish a release. But the high availability requirements of online business clusters, scene complexity, any small change will need to be very careful, then follow the community version upgrade slightly difficult. But in order to be able to use some of the latest features and security we occasionally have to do some upgrade. So fully hosted Azure Kubernetes Services (AKS) on the show at this time its advantage.
Azure Kubernetes service provides multiple Kubernetes version. After AKS new version is available, you can use Azure Azure CLI portal or upgrade the cluster. During the upgrade process, the node will be carefully blockade and exclusion in order to minimize disruption to applications that are running.
When AKS cluster upgrade, the following two points to note:

  • When upgrading AKS cluster, you can not skip Kubernetes minor version. For example, to allow upgrading from 1.12.x 1.13.x, or upgrade from 1.13.x to 1.14.x, but not to upgrade from 1.12.x 1.14.x.
  • To upgrade from 1.12.x to 1.14.x, please upgrade from 1.12.x to 1.13.x, then upgrade from 1.13.x to 1.14.x.

Having said that let's look at how to quickly upgrade to the specified version AKS cluster
cluster version first need to use the following command to list the current resource group of AKS cluster information, which is kubernetesVersion:
az aks list
Cluster upgrade Azure Kubernetes

Kubernetes using the command lists available versions of Azure data center in South-East Asia, where -l is the location parameter, the present embodiment is southeastasia:
az aks get-versions -l southeastasia
Cluster upgrade Azure Kubernetes

Use the following command to AKS cluster upgrade from 1.14.8 to 1.15.5:
az aks upgrade -g devopslab -n labaks -k “1.15.5”
Cluster upgrade Azure Kubernetes
Cluster upgrade Azure Kubernetes

When upgrading Portal can check the status of the Azure:
Cluster upgrade Azure Kubernetes

After the upgrade is complete, we can see the cluster and upgraded to the specified version:
Cluster upgrade Azure Kubernetes

Guess you like

Origin blog.51cto.com/wuyvzhang/2466301