Skip to content

Commit df847a9

Browse files
Edvin Norlingnissessenap
authored andcommitted
Add info how to update AKS cluster
1 parent 0f50117 commit df847a9

File tree

1 file changed

+11
-0
lines changed
  • docs/xks/operator-guide/kubernetes

1 file changed

+11
-0
lines changed

docs/xks/operator-guide/kubernetes/aks.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ export RG=rg1
9090
export POOL_NAME=default
9191
export CLUSTER_NAME=cluster1
9292
export AZURE_LOCATION=westeurope
93+
export KUBE_VERSION=1.21.9
9394
```
9495

9596
What AKS versions can I pick in this Azure location:
@@ -102,6 +103,16 @@ az aks get-versions --location $AZURE_LOCATION -o table
102103
az aks get-upgrades --resource-group $RG --name $CLUSTER_NAME --output table
103104
```
104105

106+
We recommend to only upgrade control-plane separately and then upgrade the nodes.
107+
108+
```shell
109+
az aks upgrade --resource-group $RG --name $CLUSTER_NAME --kubernetes-version $KUBE_VERSION --control-plane-only
110+
```
111+
112+
```shell
113+
az aks nodepool upgrade --resource-group $RG --cluster-name $CLUSTER_NAME --name $POOL_NAME --kubernetes-version $KUBE_VERSION
114+
```
115+
105116
### Upgrading node pools without upgrading cluster
106117

107118
From time to time you might want to upgrade your Node Pools without upgrading the Kubernetes version. We always recommend to look at

0 commit comments

Comments
 (0)