Skip to content

Commit 78f7774

Browse files
authored
Merge pull request #89409 from jluk/master
add node pool ccp only flag
2 parents 95e89d8 + 8fd99e9 commit 78f7774

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

articles/aks/use-multiple-node-pools.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ You need the Azure CLI version 2.0.61 or later installed and configured. Run `az
3131

3232
### Install aks-preview CLI extension
3333

34-
To use multiple node pools, you need the *aks-preview* CLI extension version 0.4.12 or higher. Install the *aks-preview* Azure CLI extension using the [az extension add][az-extension-add] command, then check for any available updates using the [az extension update][az-extension-update] command::
34+
To use multiple node pools, you need the *aks-preview* CLI extension version 0.4.16 or higher. Install the *aks-preview* Azure CLI extension using the [az extension add][az-extension-add] command, then check for any available updates using the [az extension update][az-extension-update] command::
3535

3636
```azurecli-interactive
3737
# Install the aks-preview extension
@@ -174,7 +174,9 @@ $ az aks nodepool list --resource-group myResourceGroup --cluster-name myAKSClus
174174
> [!NOTE]
175175
> Upgrade and scale operations on a cluster or node pool cannot occur simultaneously, if attempted an error will be returned. Instead, each operation type must complete on the target resource prior to the next request on that same resource. Read more about this on our [troubleshooting guide](https://aka.ms/aks-pending-upgrade).
176176
177-
When your AKS cluster was initially created in the first step, a `--kubernetes-version` of *1.13.10* was specified. This set the Kubernetes version for both the control plane and the default node pool. The commands in this section explain how to upgrade a single specific node pool. The relationship between upgrading the Kubernetes version of the control plane and the node pool are explained in the [section below](#upgrade-a-cluster-control-plane-with-multiple-node-pools).
177+
When your AKS cluster was initially created in the first step, a `--kubernetes-version` of *1.13.10* was specified. This set the Kubernetes version for both the control plane and the default node pool. The commands in this section explain how to upgrade a single specific node pool.
178+
179+
The relationship between upgrading the Kubernetes version of the control plane and the node pool are explained in the [section below](#upgrade-a-cluster-control-plane-with-multiple-node-pools).
178180

179181
> [!NOTE]
180182
> The node pool OS image version is tied to the Kubernetes version of the cluster. You will only get OS image upgrades, following a cluster upgrade.
@@ -190,9 +192,6 @@ az aks nodepool upgrade \
190192
--no-wait
191193
```
192194

193-
> [!Tip]
194-
> To upgrade the control plane to *1.14.6*, run `az aks upgrade -k 1.14.6`. Learn more about [control plane upgrades with multiple node pools here](#upgrade-a-cluster-control-plane-with-multiple-node-pools).
195-
196195
List the status of your node pools again using the [az aks node pool list][az-aks-nodepool-list] command. The following example shows that *mynodepool* is in the *Upgrading* state to *1.13.10*:
197196

198197
```console
@@ -228,7 +227,7 @@ $ az aks nodepool list -g myResourceGroup --cluster-name myAKSCluster
228227

229228
It takes a few minutes to upgrade the nodes to the specified version.
230229

231-
As a best practice, you should upgrade all node pools in an AKS cluster to the same Kubernetes version. The ability to upgrade individual node pools lets you perform a rolling upgrade and schedule pods between node pools to maintain application uptime within the above constraints mentioned.
230+
As a best practice, you should upgrade all node pools in an AKS cluster to the same Kubernetes version. The default behavior of `az aks upgrade` is to upgrade all node pools together with the control plane to achieve this alignment. The ability to upgrade individual node pools lets you perform a rolling upgrade and schedule pods between node pools to maintain application uptime within the above constraints mentioned.
232231

233232
## Upgrade a cluster control plane with multiple node pools
234233

@@ -239,11 +238,13 @@ As a best practice, you should upgrade all node pools in an AKS cluster to the s
239238
> * The node pool version may be one minor version less than the control plane version.
240239
> * The node pool version may be any patch version as long as the other two constraints are followed.
241240
242-
An AKS cluster has two cluster resource objects. The first is a control plane Kubernetes version. The second is an agent pool with a Kubernetes version. A control plane maps to one or many node pools and each has their own Kubernetes version. The behavior for an upgrade operation depends on which resource is targeted and what version of the underlying API is called.
241+
An AKS cluster has two cluster resource objects with Kubernetes versions associated. The first is a control plane Kubernetes version. The second is an agent pool with a Kubernetes version. A control plane maps to one or many node pools. The behavior of an upgrade operation depends on which Azure CLI command is used.
243242

244243
1. Upgrading the control plane requires using `az aks upgrade`
245-
* This will upgrade all node pools in the cluster as well
246-
1. Upgrading with `az aks nodepool upgrade`
244+
* This will upgrade the control plane version and all node pools in the cluster
245+
* By passing `az aks upgrade` with the `--control-plane-only` flag you will only upgrade the cluster control plane and none of the associated node pools
246+
* The `--control-plane-only` flag is available in **AKS-preview extension v0.4.16** or higher
247+
1. Upgrading individual node pools requires using `az aks nodepool upgrade`
247248
* This will upgrade only the target node pool with the specified Kubernetes version
248249

249250
The relationship between Kubernetes versions held by node pools must also follow a set of rules.

0 commit comments

Comments
 (0)