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
title: Delete an Azure Kubernetes Service (AKS) node pool
3
+
description: Learn about deleting a node pool from your Azure Kubernetes Service (AKS) cluster.
4
+
ms.topic: overview
5
+
ms.author: alvinli
6
+
author: alvinli
7
+
ms.date: 05/09/2024
8
+
---
9
+
10
+
# Delete an Azure Kubernetes Service (AKS) node pool
11
+
12
+
This article outlines node pool deletion in Azure Kubernetes Service (AKS), including what happens when you delete a node pool and how to delete a node pool.
13
+
14
+
## What happens when you delete a node pool?
15
+
16
+
When you delete a node pool, the following resources are deleted:
17
+
18
+
* The virtual machine scale set (VMSS) and virtual machines (VMs) for each node in the node pool
19
+
* Any node instances in the node pool along with any pods running on those nodes
20
+
21
+
## Delete a node pool
22
+
23
+
> [!IMPORTANT]
24
+
> Keep the following information in mind when deleting a node pool:
25
+
>
26
+
> ***You can't recover a node pool after it's deleted**. You need to create a new node pool and redeploy your applications.
27
+
> * When you delete a node pool, AKS doesn't perform cordon and drain. To minimize the disruption of rescheduling pods currently running on the node pool you plan to delete, perform a cordon and drain on all nodes in the node pool before deleting. You can learn more about how to cordon and drain using the example scenario provided in the [resizing node pools][resize-node-pool] tutorial.
28
+
29
+
### [Azure CLI](#tab/azure-cli)
30
+
31
+
Delete a node pool using the [`az aks nodepool delete`][az-aks-delete-nodepool] command.
32
+
33
+
```azurecli-interactive
34
+
az aks nodepool delete \
35
+
--resource-group <resource-group-name> \
36
+
--cluster-name <cluster-name> \
37
+
--name <node-pool-name>
38
+
```
39
+
40
+
### [Azure PowerShell](#tab/azure-powershell)
41
+
42
+
Delete a node pool using the [`Remove-AzAksNodePool`][remove-azaksnodepool] cmdlet.
43
+
44
+
```azurepowershell-interactive
45
+
$params = @{
46
+
ResourceGroupName = '<resource-group-name>'
47
+
ClusterName = '<cluster-name>'
48
+
Name = '<node-pool-name>'
49
+
Force = $true
50
+
}
51
+
Remove-AzAksNodePool @params
52
+
```
53
+
54
+
### [Azure portal](#tab/azure-portal)
55
+
56
+
To delete a node pool in Azure portal, navigate to the **Settings > Node pools** page for the cluster and select the name of the node pool you want to delete. On the **Node Pool | Overview** page, you can select **Delete** to delete the node pool.
57
+
58
+
---
59
+
60
+
To verify that the node pool was deleted successfully, use the `kubectl get nodes` command to confirm that the nodes in the node pool no longer exist.
61
+
62
+
## Ignore PodDisruptionBudgets (PDBs) when removing an existing node pool (Preview)
63
+
64
+
If your cluster has PodDisruptionBudgets that are preventing the deletion of the node pool, you can ignore the PodDisruptionBudget requirements by setting `--ignore-pod-disruption-budget` to `true`. To learn more about PodDisruptionBudgets, see:
65
+
66
+
*[Plan for availability using a pod disruption budget][pod-disruption-budget]
67
+
*[Specifying a Disruption Budget for your Application][specify-disruption-budget]
68
+
*[Disruptions][disruptions]
69
+
70
+
[!INCLUDE [preview features callout](includes/preview/preview-callout.md)]
71
+
72
+
1. Register or update the `aks-preview` extension using the [`az extension add`][az-extension-add] or [`az extension update`][az-extension-update] command.
73
+
74
+
```azurecli-interactive
75
+
# Register the aks-preview extension
76
+
az extension add --name aks-preview
77
+
78
+
# Update the aks-preview extension
79
+
az extension update --name aks-preview
80
+
```
81
+
82
+
2. Delete an existing node pool without following any PodDisruptionBudgets set on the cluster using the [`az aks nodepool delete`][az-aks-delete-nodepool] command with the `--ignore-pod-disruption-budget` flag set to `true`:
83
+
84
+
```azurecli-interactive
85
+
az aks nodepool delete \
86
+
--resource-group myResourceGroup \
87
+
--cluster-name myAKSCluster \
88
+
--name nodepool1
89
+
--ignore-pod-disruption-budget true
90
+
```
91
+
92
+
3. To verify that the node pool was deleted successfully, use the `kubectl get nodes` command to confirm that the nodes in the node pool no longer exist.
93
+
94
+
## Next steps
95
+
96
+
For more information about adjusting node pool sizes in AKS, see [Resize node pools][resize-node-pool].
@@ -187,15 +186,64 @@ AKS offers a separate feature to automatically scale node pools with a feature c
187
186
188
187
For more information, see [use the cluster autoscaler](cluster-autoscaler.md#use-the-cluster-autoscaler-on-multiple-node-pools).
189
188
190
-
## Associate capacity reservation groups to node pools
189
+
## Remove specific VMs in the existing node pool (Preview)
190
+
191
+
[!INCLUDE [preview features callout](includes/preview/preview-callout.md)]
192
+
193
+
### [Azure CLI](#tab/azure-cli)
194
+
195
+
1. Register or update the `aks-preview` extension using the [`az extension add`][az-extension-add] or [`az extension update`][az-extension-update] command.
196
+
197
+
```azurecli-interactive
198
+
# Register the aks-preview extension
199
+
az extension add --name aks-preview
200
+
201
+
# Update the aks-preview extension
202
+
az extension update --name aks-preview
203
+
```
204
+
205
+
2. List the existing nodes using the `kubectl get nodes` command.
206
+
207
+
```bash
208
+
kubectl get nodes
209
+
```
210
+
211
+
Your output should look similar to the following example output:
3. Delete the specified VMs using the [`az aks nodepool delete-machines`][az-aks-nodepool-delete-machines] command. Make sure to replace the placeholders with your own values.
221
+
222
+
```azurecli-interactive
223
+
az aks nodepool delete-machines \
224
+
--resource-group <resource-group-name> \
225
+
--cluster-name <cluster-name> \
226
+
--name <node-pool-name>
227
+
--machine-names <vm-name-1> <vm-name-2>
228
+
```
229
+
230
+
4. Verify the VMs were successfully deleted using the `kubectl get nodes` command.
231
+
232
+
```bash
233
+
kubectl get nodes
234
+
```
235
+
236
+
Your output should no longer include the VMs that you specified in the `az aks nodepool delete-machines` command.
237
+
238
+
## Associate capacity reservation groups to node pools
191
239
192
240
As your workload demands change, you can associate existing capacity reservation groups to node pools to guarantee allocated capacity for your node pools.
193
241
194
242
## Prerequisites to use capacity reservation groups with AKS
195
243
196
-
- Use CLI version 2.56 or above and API version 2023-10-01 or higher.
197
-
- The capacity reservation group should already exist and should contain minimum one capacity reservation, otherwise the node pool is added to the cluster with a warning and no capacity reservation group gets associated. For more information, see [capacity reservation groups][capacity-reservation-groups].
198
-
- You need to create a user-assigned managed identity for the resource group that contains the capacity reservation group (CRG). System-assigned managed identities won't work for this feature. In the following example, replace the environment variables with your own values.
244
+
* Use CLI version 2.56 or above and API version 2023-10-01 or higher.
245
+
* The capacity reservation group should already exist and should contain minimum one capacity reservation, otherwise the node pool is added to the cluster with a warning and no capacity reservation group gets associated. For more information, see [capacity reservation groups][capacity-reservation-groups].
246
+
* You need to create a user-assigned managed identity for the resource group that contains the capacity reservation group (CRG). System-assigned managed identities won't work for this feature. In the following example, replace the environment variables with your own values.
199
247
200
248
```azurecli-interactive
201
249
IDENTITY_NAME=myID
@@ -207,14 +255,17 @@ As your workload demands change, you can associate existing capacity reservation
207
255
az identity create --name $IDENTITY_NAME --resource-group $RG_NAME
- You need to assign the `Contributor` role to the user-assigned identity created above. For more details, see [Steps to assign an Azure role](/azure/role-based-access-control/role-assignments-steps#privileged-administrator-roles).
211
-
- Create a new cluster and assign the newly created identity.
258
+
259
+
* You need to assign the `Contributor` role to the user-assigned identity created above. For more details, see [Steps to assign an Azure role](/azure/role-based-access-control/role-assignments-steps#privileged-administrator-roles).
260
+
* Create a new cluster and assign the newly created identity.
261
+
212
262
```azurecli-interactive
213
263
az aks create --resource-group $RG_NAME --name $CLUSTER_NAME --location $LOCATION \
Copy file name to clipboardExpand all lines: articles/aks/release-tracker.md
+21-10Lines changed: 21 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,33 +2,44 @@
2
2
title: AKS release tracker
3
3
description: Learn how to determine which Azure regions have the weekly AKS release deployments rolled out in real time.
4
4
ms.topic: overview
5
-
ms.date: 04/25/2023
5
+
ms.date: 05/09/2024
6
6
ms.author: nickoman
7
7
author: nickomang
8
8
ms.custom: mvc, build-2023
9
9
---
10
10
11
11
# AKS release tracker
12
12
13
-
AKS releases weekly rounds of fixes and feature and component updates that affect all clusters and customers. However, these releases can take up to two weeks to roll out to all regions from the initial time of shipping due to Azure Safe Deployment Practices (SDP). It is important for customers to know when a particular AKS release is hitting their region, and the AKS release tracker provides these details in real time by versions and regions.
13
+
AKS releases weekly rounds of fixes and feature and component updates that affect all clusters and customers. It's important for you to know when a particular AKS release is hitting your region, and the AKS release tracker provides these details in real time by versions and regions.
14
14
15
-
## Why release tracker?
15
+
## Overview
16
16
17
-
With AKS release tracker, customers can follow specific component updates present in an AKS version release, such as fixes shipped to a core add-on. In addition to providing real-time updates of region release status, the tracker also links to the specific version of the AKS [release notes][aks-release] to help customers identify which instance of the release is relevant to them. As the data is updated in real time, customers can track the entire SDP process with a single tool.
17
+
With AKS release tracker, you can follow specific component updates present in an AKS version release, such as fixes shipped to a core add-on, and node image updates for Azure Linux, Ubuntu, and Windows. The tracker provides links to the specific version of the AKS [release notes][aks-release] to help you identify relevant release instances. Real time data updates allow you to track the release order and status of each region.
18
18
19
-
## How to use the release tracker
19
+
## Use the release tracker
20
20
21
21
To view the release tracker, visit the [AKS release status webpage][release-tracker-webpage].
22
22
23
-
The top half of the tracker shows the latest and 3 previously available release versions for each region, and links to the corresponding release notes entry. This view is helpful when you want to track the available versions by region.
23
+
### AKS releases
24
24
25
-
:::image type="content" source="./media/release-tracker/regional-status.png" alt-text="Screenshot of the A K S release tracker's regional status table displayed in a web browser.":::
25
+
The top half of the tracker shows the current latest version and three previously available release versions for each region and links to the corresponding release notes entries. This view is helpful when you want to track the available versions by region.
26
26
27
-
The bottom half of the tracker shows the SDP process. The table has two views: one shows the latest version and status update for each grouping of regions and the other shows the status and region availability of each currently supported version.
27
+
:::image type="content" source="./media/release-tracker/regional-status.png" alt-text="Screenshot of the AKS release tracker's regional status table displayed in a web browser.":::
28
28
29
-
:::image type="content" source="./media/release-tracker/sdp-process.png" alt-text="Screenshot of the A K S release tracker's S D P process table displayed in a web browser.":::
29
+
The bottom half of the tracker shows the release order. The table has two views: *By Region* and *By Version*.
30
+
31
+
:::image type="content" source="./media/release-tracker/release-order.png" alt-text="Screenshot of the AKS release tracker's release order table displayed in a web browser.":::
32
+
33
+
### AKS node image updates
34
+
35
+
The top half of the tracker shows the current latest node image version and three previously available node image versions for each region. This view is helpful when you want to track the available node image versions by region.
36
+
37
+
:::image type="content" source="./media/release-tracker/node-image-status.png" alt-text="Screenshot of the AKS release tracker's node image status table displayed in a web browser.":::
38
+
39
+
The bottom half of the tracker shows the node image update order. The table has two views: *By Region* and *By Version*.
40
+
41
+
:::image type="content" source="./media/release-tracker/node-image-order.png" alt-text="Screenshot of the AKS release tracker's node image order table displayed in a web browser.":::
Copy file name to clipboardExpand all lines: articles/bastion/bastion-overview.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
@@ -5,7 +5,7 @@ author: cherylmc
5
5
# Customer intent: As someone with a basic network background, but is new to Azure, I want to understand the capabilities of Azure Bastion so that I can securely connect to my Azure virtual machines.
0 commit comments