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
+32-9Lines changed: 32 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ If you’re using cluster auto-upgrade, you can no longer upgrade the control pl
34
34
35
35
If using the `node-image` cluster auto-upgrade channel or the `NodeImage` node image auto-upgrade channel, Linux [unattended upgrades][unattended-upgrades] are disabled by default.
36
36
37
-
## Use cluster auto-upgrade
37
+
## Cluster auto-upgrade channels
38
38
39
39
Automatically completed upgrades are functionally the same as manual upgrades. The [selected auto-upgrade channel][planned-maintenance] determines the timing of upgrades. When making changes to auto-upgrade, allow 24 hours for the changes to take effect. Automatically upgrading a cluster follows the same process as manually upgrading a cluster. For more information, see [Upgrade an AKS cluster][upgrade-aks-cluster].
40
40
@@ -62,38 +62,61 @@ The following upgrade channels are available:
62
62
>
63
63
> * Each cluster can only be associated with a single auto-upgrade channel. This is because your specified channel determines the Kubernetes version that runs on the cluster.
64
64
65
-
### Use cluster auto-upgrade with a new AKS cluster
65
+
## Use cluster auto-upgrade with a new AKS cluster
66
+
67
+
### [Azure CLI](#tab/azure-cli)
66
68
67
69
* Set the auto-upgrade channel when creating a new cluster using the [`az aks create`][az-aks-create] command and the `auto-upgrade-channel` parameter.
68
70
69
71
```azurecli-interactive
70
72
az aks create --resource-group myResourceGroup --name myAKSCluster --auto-upgrade-channel stable --generate-ssh-keys
71
73
```
72
74
73
-
### Use cluster auto-upgrade with an existing AKS cluster
75
+
### [Azure portal](#tab/azure-portal)
76
+
77
+
1. In the Azure portal, select **Create a resource** > **Containers** > **Azure Kubernetes Service (AKS)**.
78
+
2. In the **Basics** tab, under **Cluster details**, select the desired auto-upgrade channel from the **Automatic upgrade** dropdown. We recommend selecting the **Enabled with patch (recommended)** option.
79
+
80
+
:::image type="content" source="./media/auto-upgrade-cluster/portal-autoupgrade-new-cluster.png" alt-text="The screenshot of the create blade for an AKS cluster in the Azure portal. The automatic upgrade field shows 'Enabled with patch (recommended)' selected.":::
81
+
82
+
3. Complete the remaining steps to create the cluster.
83
+
84
+
---
85
+
86
+
## Use cluster auto-upgrade with an existing AKS cluster
87
+
88
+
### [Azure CLI](#tab/azure-cli)
74
89
75
90
* Set the auto-upgrade channel on an existing cluster using the [`az aks update`][az-aks-update] command with the `auto-upgrade-channel` parameter.
76
91
77
92
```azurecli-interactive
78
93
az aks update --resource-group myResourceGroup --name myAKSCluster --auto-upgrade-channel stable
79
94
```
80
95
81
-
## Auto-upgrade in the Azure portal
96
+
### [Azure portal](#tab/azure-portal)
97
+
98
+
1. In the Azure portal, navigate to your AKS cluster.
99
+
2. In the **Settings** section, select **Cluster configuration**.
100
+
3. Under **Upgrade** > **Kubernetes version**, select **Upgrade version**.
82
101
83
-
If using the Azure portal, you can find auto-upgrade settings under the **Settings** > **Cluster configuration** blade by selecting **Upgrade version**. The `Patch` channel is selected by default.
102
+
:::image type="content" source="./media/auto-upgrade-cluster/portal-autoupgrade-existing-cluster.png" alt-text="The screenshot of the upgrade blade for an AKS cluster in the Azure portal.":::
84
103
85
-
:::image type="content" source="./media/auto-upgrade-cluster/portal-upgrade.png" alt-text="The screenshot of the upgrade blade for an AKS cluster in the Azure portal. The automatic upgrade field shows 'patch' selected, and several APIs deprecated between the selected Kubernetes version and the cluster's current version are described.":::
104
+
4. On the **Upgrade Kubernetes version** page, select the desired auto-upgrade channel from the **Automatic upgrade** dropdown. We recommend selecting the **Enabled with patch (recommended)** option.
86
105
87
-
The Azure portal also highlights all the deprecated APIs between your current version and newer, available versions you intend to migrate to. For more information, see the [Kubernetes API removal and deprecation process][k8s-deprecation].
106
+
:::image type="content" source="./media/auto-upgrade-cluster/portal-autoupgrade-upgrade-page-existing-cluster.png" alt-text="The screenshot of the Upgrade Kubernetes page for an AKS cluster in the Azure portal.":::
107
+
108
+
5. Select **Save**.
109
+
110
+
---
88
111
89
112
## Use auto-upgrade with Planned Maintenance
90
113
91
-
If using Planned Maintenance and cluster auto-upgrade, your upgrade starts during your specified maintenance window.
114
+
If using Planned Maintenance and cluster auto-upgrade, your upgrade starts during your specified maintenance window.
92
115
93
116
> [!NOTE]
94
117
> To ensure proper functionality, use a maintenance window of *four hours or more*.
95
118
96
-
For more information on Planned Maintenance, see [Use Planned Maintenance to schedule maintenance windows for your Azure Kubernetes Service (AKS) cluster][planned-maintenance].
119
+
For more information on how to set a maintenance window with Planned Maintenance, see [Use Planned Maintenance to schedule maintenance windows for your Azure Kubernetes Service (AKS) cluster][planned-maintenance].
Copy file name to clipboardExpand all lines: articles/aks/supported-kubernetes-versions.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -74,7 +74,7 @@ Note the following important changes before you upgrade to any of the available
74
74
> [!NOTE]
75
75
> Alias minor version requires Azure CLI version 2.37 or above as well as API version 20220401 or above. Use `az upgrade` to install the latest version of the CLI.
76
76
77
-
AKS allows you to create a cluster without specifying the exact patch version. When you create a cluster without designating a patch, the cluster runs the minor version's latest GA patch. For example, if you create a cluster with **`1.21`**, your cluster runs **`1.21.7`**, which is the latest GA patch version of *1.21*. If you want to upgrade your patch version in the same minor version, please use [auto-upgrade](./auto-upgrade-cluster.md#use-cluster-auto-upgrade).
77
+
AKS allows you to create a cluster without specifying the exact patch version. When you create a cluster without designating a patch, the cluster runs the minor version's latest GA patch. For example, if you create a cluster with **`1.21`**, your cluster runs **`1.21.7`**, which is the latest GA patch version of *1.21*. If you want to upgrade your patch version in the same minor version, please use [auto-upgrade](./auto-upgrade-cluster.md).
78
78
79
79
To see what patch you're on, run the `az aks show --resource-group myResourceGroup --name myAKSCluster` command. The `currentKubernetesVersion` property shows the whole Kubernetes version.
Copy file name to clipboardExpand all lines: articles/azure-linux/tutorial-azure-linux-upgrade.md
+13-12Lines changed: 13 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: Azure Linux Container Host for AKS tutorial - Upgrade Azure Linux Container Host nodes
3
-
description: In this Azure Linux Container Host for AKS tutorial, you will learn how to upgrade Azure Linux Container Host nodes.
3
+
description: In this Azure Linux Container Host for AKS tutorial, you learn how to upgrade Azure Linux Container Host nodes.
4
4
author: htaubenfeld
5
5
ms.author: htaubenfeld
6
6
ms.service: microsoft-linux
@@ -12,22 +12,23 @@ ms.date: 05/10/2023
12
12
13
13
The Azure Linux Container Host ships updates through two mechanisms: updated Azure Linux node images and automatic package updates.
14
14
15
-
As part of the application and cluster lifecycle, we recommend keeping your clusters up to date and secured by enabling upgrades for your cluster. To automatically keep your clusters up to date and secured, you can enable automatic node-image upgrades so your cluster will use the latest Azure Linux Container Host image when it scales up. Upgrading clusters can also be done manually.
15
+
As part of the application and cluster lifecycle, we recommend keeping your clusters up to date and secured by enabling upgrades for your cluster. You can enable automatic node-image upgrades to ensure your clusters use the latest Azure Linux Container Host image when it scales up. You can also manually upgrade the node-image on a cluster.
16
16
17
-
In this tutorial, part five of five, you will learn how to:
17
+
In this tutorial, part five of five, you learn how to:
18
18
19
19
> [!div class="checklist"]
20
+
>
20
21
> * Manually upgrade the node-image on a cluster.
21
22
> * Automatically upgrade an Azure Linux Container Host cluster.
22
23
> * Deploy Kured in an Azure Linux Container Host cluster.
23
24
24
25
> [!NOTE]
25
-
> 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](../../articles/aks/release-tracker.md).
26
+
> Any upgrade operation, whether performed manually or automatically, upgrades 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](../../articles/aks/release-tracker.md).
26
27
27
28
## Prerequisites
28
29
29
-
- In previous tutorials, you created and deployed an Azure Linux Container Host cluster. To complete this tutorial, you need an existing cluster. If you haven't done this step and would like to follow along, start with [Tutorial 1: Create a cluster with the Azure Linux Container Host for AKS](./tutorial-azure-linux-create-cluster.md).
30
-
- You need the latest version of Azure CLI. Run `az --version`to find the version. If you need to install or upgrade, see [Install Azure CLI](/cli/azure/install-azure-cli).
30
+
* In previous tutorials, you created and deployed an Azure Linux Container Host cluster. To complete this tutorial, you need an existing cluster. If you haven't done this step and would like to follow along, start with [Tutorial 1: Create a cluster with the Azure Linux Container Host for AKS](./tutorial-azure-linux-create-cluster.md).
31
+
* You need the latest version of Azure CLI. Find the version using the `az --version`command. If you need to install or upgrade, see [Install Azure CLI](/cli/azure/install-azure-cli).
31
32
32
33
## Manually upgrade your cluster
33
34
@@ -45,22 +46,21 @@ az aks nodepool upgrade \
45
46
46
47
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 Azure Linux Container Host features or patches from AKS and upstream Kubernetes.
47
48
48
-
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.
49
+
Automatically completed upgrades are functionally the same as manual upgrades. The selected channel determines the timing of upgrades. When making changes to auto-upgrade, allow 24 hours for the changes to take effect.
49
50
50
-
To set the auto-upgrade channel on existing cluster, update the `--auto-upgrade-channel` parameter, similar to the following example which automatically upgrades the cluster to the latest supported patch release of a previous minor version.
51
+
To set the auto-upgrade channel on existing cluster, update the `--auto-upgrade-channel` parameter, similar to the following example, which automatically upgrades the cluster to the latest supported patch release of a previous minor version.
51
52
52
53
```azurecli-interactive
53
54
az aks update --resource-group testAzureLinuxResourceGroup --name testAzureLinuxCluster --auto-upgrade-channel stable
54
55
```
55
56
56
-
For more information on upgrade channels, see [Using cluster auto-upgrade](../../articles/aks/auto-upgrade-cluster.md#use-cluster-auto-upgrade).
57
+
For more information on upgrade channels, see [Using cluster auto-upgrade](../../articles/aks/auto-upgrade-cluster.md).
57
58
58
59
## Enable automatic package upgrades
59
60
60
61
Similar to setting your clusters to auto-upgrade, you can use the same set once and forget mechanism for package upgrades by enabling the node-os upgrade channel. If automatic package upgrades are enabled, the dnf-automatic systemd service runs daily and installs any updated packages that have been published.
61
62
62
-
To set the node-os upgrade channel on existing cluster, update the `--node-os-upgrade-channel` parameter, similar to the following example which automatically enables package upgrades. Note, that for some settings of [Node OS Upgrade Channel](../../articles/aks/auto-upgrade-node-image.md), `dnf-automatic` will be disabled by default.
63
-
63
+
To set the node-os upgrade channel on existing cluster, update the `--node-os-upgrade-channel` parameter, similar to the following example, which automatically enables package upgrades. Note that for some settings of [Node OS Upgrade Channel](../../articles/aks/auto-upgrade-node-image.md), `dnf-automatic` is disabled by default.
64
64
65
65
```azurecli-interactive
66
66
az aks update --resource-group testAzureLinuxResourceGroup --name testAzureLinuxCluster --node-os-upgrade-channel Unmanaged
@@ -70,7 +70,7 @@ az aks update --resource-group testAzureLinuxResourceGroup --name testAzureLinux
70
70
71
71
To protect your clusters, security updates are automatically applied to Azure Linux nodes. These updates include OS security fixes, kernel updates, and package upgrades. Some of these updates require a node reboot to complete the process. AKS doesn't automatically reboot these nodes to complete the update process.
72
72
73
-
We recommend enabling an automatic reboot daemon such as [Kured](https://kured.dev/docs/) so that your cluster can reboot nodes that have taken kernel updates. To deploy the Kured DaemonSet in an Azure Linux Container Host cluster, see [Deploy kured in an AKS cluster](../../articles/aks/node-updates-kured.md#deploy-kured-in-an-aks-cluster)
73
+
We recommend enabling an automatic reboot daemon, such as [Kured](https://kured.dev/docs/), so that your cluster can reboot nodes that have taken kernel updates. To deploy the Kured DaemonSet in an Azure Linux Container Host cluster, see [Deploy Kured in an AKS cluster](../../articles/aks/node-updates-kured.md#deploy-kured-in-an-aks-cluster).
74
74
75
75
## Clean up resources
76
76
@@ -85,6 +85,7 @@ az group delete --name testAzureLinuxCluster --yes --no-wait
85
85
In this tutorial, you upgraded your Azure Linux Container Host cluster. You learned how to:
86
86
87
87
> [!div class="checklist"]
88
+
>
88
89
> * Manually upgrade the node-image on a cluster.
89
90
> * Automatically upgrade an Azure Linux Container Host cluster.
90
91
> * Deploy kured in an Azure Linux Container Host cluster.
0 commit comments