You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/aks/auto-upgrade-cluster.md
+11-2Lines changed: 11 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,9 @@ ms.date: 07/07/2022
12
12
13
13
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].
14
14
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
+
15
18
## Why use auto-upgrade
16
19
17
20
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
20
23
21
24
## Using auto-upgrade
22
25
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.
24
27
25
28
The following upgrade channels are available:
26
29
@@ -51,7 +54,12 @@ az aks update --resource-group myResourceGroup --name myAKSCluster --auto-upgrad
51
54
52
55
## Using auto-upgrade with Planned Maintenance
53
56
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].
55
63
56
64
## Best practices for auto-upgrade
57
65
@@ -71,3 +79,4 @@ The following best practices will help maximize your success when using auto-upg
Copy file name to clipboardExpand all lines: articles/aks/planned-maintenance.md
+6-3Lines changed: 6 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ author: qpetraroia
12
12
13
13
# Use Planned Maintenance to schedule maintenance windows for your Azure Kubernetes Service (AKS) cluster (preview)
14
14
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.
16
16
17
17
## Before you begin
18
18
@@ -22,7 +22,7 @@ This article assumes that you have an existing AKS cluster. If you need an AKS c
22
22
23
23
### Limitations
24
24
25
-
When using Planned Maintenance, the following restrictions apply:
25
+
When you use Planned Maintenance, the following restrictions apply:
26
26
27
27
- AKS reserves the right to break these windows for unplanned/reactive maintenance operations that are urgent or critical.
28
28
- 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
74
74
}
75
75
```
76
76
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:
78
78
79
79
```azurecli-interactive
80
80
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
213
213
214
214
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].
215
215
216
+
> [!NOTE]
217
+
> To ensure proper functionality, use a maintenance window of four hours or more.
218
+
216
219
## Next steps
217
220
218
221
- To get started with upgrading your AKS cluster, see [Upgrade an AKS cluster][aks-upgrade]
Copy file name to clipboardExpand all lines: articles/aks/upgrade-cluster.md
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,12 @@ Part of the AKS cluster lifecycle involves performing periodic upgrades to the l
13
13
14
14
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].
15
15
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
+
16
22
## Before you begin
17
23
18
24
* 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
115
121
116
122
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%.
117
123
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.
119
125
120
126
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.
121
127
@@ -292,4 +298,5 @@ This article showed you how to upgrade an existing AKS cluster. To learn more ab
0 commit comments