Skip to content

Commit 3e59666

Browse files
Merge pull request #216385 from Nickomang/aks-upgrade-changes
Changes to AKS upgrade content
2 parents bbb6925 + d462d03 commit 3e59666

File tree

4 files changed

+26
-8
lines changed

4 files changed

+26
-8
lines changed

articles/aks/auto-upgrade-cluster.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ ms.date: 07/07/2022
1212

1313
Part of the AKS cluster lifecycle involves performing periodic upgrades to the latest Kubernetes version. It’s important you apply the latest security releases, or upgrade to get the latest features. Before learning about auto-upgrade, make sure you understand upgrade fundamentals by reading [Upgrade an AKS cluster][upgrade-aks-cluster].
1414

15+
> [!NOTE]
16+
> Any upgrade operation, whether performed manually or automatically, will upgrade the node image version if not already on the latest. The latest version is contingent on a full AKS release, and can be determined by visiting the [AKS release tracker][release-tracker].
17+
1518
## Why use auto-upgrade
1619

1720
Auto-upgrade provides a set once and forget mechanism that yields tangible time and operational cost benefits. By enabling auto-upgrade, you can ensure your clusters are up to date and don't miss the latest AKS features or patches from AKS and upstream Kubernetes.
@@ -20,7 +23,7 @@ AKS follows a strict versioning window with regard to supportability. With prope
2023

2124
## Using auto-upgrade
2225

23-
Automatically completed upgrades are functionally the same as manual upgrades. The timing of upgrades is determined by the selected channel.
26+
Automatically completed upgrades are functionally the same as manual upgrades. The timing of upgrades is determined by the selected channel. When making changes to auto-upgrade, allow 24 hours for the changes to take effect.
2427

2528
The following upgrade channels are available:
2629

@@ -51,7 +54,12 @@ az aks update --resource-group myResourceGroup --name myAKSCluster --auto-upgrad
5154

5255
## Using auto-upgrade with Planned Maintenance
5356

54-
If you’re using Planned Maintenance and Auto-Upgrade, your upgrade will start during your specified maintenance window. For more information on Planned Maintenance, see [Use Planned Maintenance to schedule maintenance windows for your Azure Kubernetes Service (AKS) cluster][planned-maintenance].
57+
If you’re using Planned Maintenance and Auto-Upgrade, your upgrade will start during your specified maintenance window.
58+
59+
> [!NOTE]
60+
> To ensure proper functionality, use a maintenance window of four hours or more.
61+
62+
For more information on Planned Maintenance, see [Use Planned Maintenance to schedule maintenance windows for your Azure Kubernetes Service (AKS) cluster][planned-maintenance].
5563

5664
## Best practices for auto-upgrade
5765

@@ -71,3 +79,4 @@ The following best practices will help maximize your success when using auto-upg
7179

7280
<!-- EXTERNAL LINKS -->
7381
[pdb-best-practices]: https://kubernetes.io/docs/tasks/run-application/configure-pdb/
82+
[release-tracker]: release-tracker.md

articles/aks/node-image-upgrade.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,11 @@ If you'd like to increase the speed of upgrades, use the `--max-surge` value to
131131
The following command sets the max surge value for performing a node image upgrade:
132132

133133
```azurecli
134-
az aks nodepool upgrade \
134+
az aks nodepool update \
135135
--resource-group myResourceGroup \
136136
--cluster-name myAKSCluster \
137137
--name mynodepool \
138138
--max-surge 33% \
139-
--node-image-only \
140139
--no-wait
141140
```
142141

articles/aks/planned-maintenance.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ author: qpetraroia
1212

1313
# Use Planned Maintenance to schedule maintenance windows for your Azure Kubernetes Service (AKS) cluster (preview)
1414

15-
Your AKS cluster has regular maintenance performed on it automatically. By default, this work can happen at any time. Planned Maintenance allows you to schedule weekly maintenance windows that will update your control plane as well as your kube-system Pods on a VMSS instance and minimize workload impact. Once scheduled, all your maintenance will occur during the window you selected. You can schedule one or more weekly windows on your cluster by specifying a day or time range on a specific day. Maintenance Windows are configured using the Azure CLI.
15+
Your AKS cluster has regular maintenance performed on it automatically. By default, this work can happen at any time. Planned Maintenance allows you to schedule weekly maintenance windows that will update your control plane as well as your kube-system pods on a VMSS instance, and minimize workload impact. Once scheduled, all your maintenance will occur during the window you selected. You can schedule one or more weekly windows on your cluster by specifying a day or time range on a specific day. Maintenance Windows are configured using the Azure CLI.
1616

1717
## Before you begin
1818

@@ -22,7 +22,7 @@ This article assumes that you have an existing AKS cluster. If you need an AKS c
2222

2323
### Limitations
2424

25-
When using Planned Maintenance, the following restrictions apply:
25+
When you use Planned Maintenance, the following restrictions apply:
2626

2727
- AKS reserves the right to break these windows for unplanned/reactive maintenance operations that are urgent or critical.
2828
- Currently, performing maintenance operations are considered *best-effort only* and are not guaranteed to occur within a specified window.
@@ -74,7 +74,7 @@ The following example output shows the maintenance window from 1:00am to 2:00am
7474
}
7575
```
7676

77-
To allow maintenance any time during a day, omit the *start-hour* parameter. For example, the following command sets the maintenance window for the full day every Monday:
77+
To allow maintenance anytime during a day, omit the *start-hour* parameter. For example, the following command sets the maintenance window for the full day every Monday:
7878

7979
```azurecli-interactive
8080
az aks maintenanceconfiguration add -g MyResourceGroup --cluster-name myAKSCluster --name default --weekday Monday
@@ -213,6 +213,9 @@ az aks maintenanceconfiguration delete -g MyResourceGroup --cluster-name myAKSCl
213213

214214
Planned Maintenance will detect if you are using Cluster Auto-Upgrade and schedule your upgrades during your maintenance window automatically. For more details on about Cluster Auto-Upgrade, see [Upgrade an Azure Kubernetes Service (AKS) cluster][aks-upgrade].
215215

216+
> [!NOTE]
217+
> To ensure proper functionality, use a maintenance window of four hours or more.
218+
216219
## Next steps
217220

218221
- To get started with upgrading your AKS cluster, see [Upgrade an AKS cluster][aks-upgrade]

articles/aks/upgrade-cluster.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ Part of the AKS cluster lifecycle involves performing periodic upgrades to the l
1313

1414
For AKS clusters that use multiple node pools or Windows Server nodes, see [Upgrade a node pool in AKS][nodepool-upgrade]. To upgrade a specific node pool without doing a Kubernetes cluster upgrade, see [Upgrade a specific node pool][specific-nodepool].
1515

16+
> [!NOTE]
17+
> Any upgrade operation, whether performed manually or automatically, will upgrade the node image version if not already on the latest. The latest version is contingent on a full AKS release, and can be determined by visiting the [AKS release tracker][release-tracker].
18+
19+
> [!NOTE]
20+
> Performing upgrade operations requires the `Microsoft.ContainerService/managedClusters/agentPools/write` RBAC role. For more on Azure RBAC roles, see the [Azure resource provider operations]
21+
1622
## Before you begin
1723

1824
* If you're using Azure CLI, this article requires that you're running the Azure CLI version 2.34.1 or later. Run `az --version` to find the version. If you need to install or upgrade, see [Install Azure CLI][azure-cli-install].
@@ -115,7 +121,7 @@ By default, AKS configures upgrades to surge with one extra node. A default valu
115121

116122
For example, a max surge value of 100% provides the fastest possible upgrade process (doubling the node count) but also causes all nodes in the node pool to be drained simultaneously. You may wish to use a higher value such as this for testing environments. For production node pools, we recommend a max_surge setting of 33%.
117123

118-
AKS accepts both integer values and a percentage value for max surge. An integer such as "5" indicates five extra nodes to surge. A value of "50%" indicates a surge value of half the current node count in the pool. Max surge percent values can be a minimum of 1% and a maximum of 100%. A percent value is rounded up to the nearest node count. If the max surge value is higher than the current node count at the time of upgrade, the current node count is used for the max surge value.
124+
AKS accepts both integer values and a percentage value for max surge. An integer such as "5" indicates five extra nodes to surge. A value of "50%" indicates a surge value of half the current node count in the pool. Max surge percent values can be a minimum of 1% and a maximum of 100%. A percent value is rounded up to the nearest node count. If the max surge value is higher than the required number of nodes to be upgraded, the number of nodes to be upgraded is used for the max surge value.
119125

120126
During an upgrade, the max surge value can be a minimum of 1 and a maximum value equal to the number of nodes in your node pool. You can set larger values, but the maximum number of nodes used for max surge won't be higher than the number of nodes in the pool at the time of upgrade.
121127

@@ -292,4 +298,5 @@ This article showed you how to upgrade an existing AKS cluster. To learn more ab
292298
[upgrade-cluster]: #upgrade-an-aks-cluster
293299
[planned-maintenance]: planned-maintenance.md
294300
[aks-auto-upgrade]: auto-upgrade-cluster.md
301+
[release-tracker]: release-tracker.md
295302
[specific-nodepool]: node-image-upgrade.md#upgrade-a-specific-node-pool

0 commit comments

Comments
 (0)