Skip to content

Commit b993aa6

Browse files
committed
Merge branch 'main' of https://github.com/MicrosoftDocs/azure-docs-pr into diagramsAvail
2 parents f99f93a + 0c9bc59 commit b993aa6

File tree

150 files changed

+426
-251
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

150 files changed

+426
-251
lines changed

articles/aks/TOC.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,8 @@
300300
href: use-system-pools.md
301301
- name: Resize node pools
302302
href: resize-node-pool.md
303+
- name: Delete node pools
304+
href: delete-node-pool.md
303305
- name: Virtual nodes
304306
items:
305307
- name: Use virtual nodes

articles/aks/delete-node-pool.md

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
---
2+
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].
97+
98+
<!-- LINKS -->
99+
[az-aks-delete-nodepool]: /cli/azure/aks#az_aks_nodepool_delete
100+
[remove-azaksnodepool]: /powershell/module/az.aks/remove-azaksnodepool
101+
[resize-node-pool]: ./resize-node-pool.md
102+
[pod-disruption-budget]: operator-best-practices-scheduler.md#plan-for-availability-using-pod-disruption-budgets
103+
[specify-disruption-budget]: https://kubernetes.io/docs/tasks/run-application/configure-pdb/
104+
[disruptions]: https://kubernetes.io/docs/concepts/workloads/pods/disruptions/
105+
[az-extension-add]: /cli/azure/extension#az-extension-add
106+
[az-extension-update]: /cli/azure/extension#az-extension-update

articles/aks/manage-node-pools.md

Lines changed: 60 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ ms.custom: devx-track-azurecli, build-2023
66
ms.date: 07/19/2023
77
author: schaffererin
88
ms.author: schaffererin
9-
109
ms.subservice: aks-nodes
1110
---
1211

@@ -187,15 +186,64 @@ AKS offers a separate feature to automatically scale node pools with a feature c
187186
188187
For more information, see [use the cluster autoscaler](cluster-autoscaler.md#use-the-cluster-autoscaler-on-multiple-node-pools).
189188
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:
212+
213+
```output
214+
NAME STATUS ROLES AGE VERSION
215+
aks-mynodepool-20823458-vmss000000 Ready agent 63m v1.21.9
216+
aks-mynodepool-20823458-vmss000001 Ready agent 63m v1.21.9
217+
aks-mynodepool-20823458-vmss000002 Ready agent 63m v1.21.9
218+
```
219+
220+
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
191239
192240
As your workload demands change, you can associate existing capacity reservation groups to node pools to guarantee allocated capacity for your node pools.
193241
194242
## Prerequisites to use capacity reservation groups with AKS
195243
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.
199247
200248
```azurecli-interactive
201249
IDENTITY_NAME=myID
@@ -207,14 +255,17 @@ As your workload demands change, you can associate existing capacity reservation
207255
az identity create --name $IDENTITY_NAME --resource-group $RG_NAME
208256
IDENTITY_ID=$(az identity show --name $IDENTITY_NAME --resource-group $RG_NAME --query identity.id -o tsv)
209257
```
210-
- 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+
212262
```azurecli-interactive
213263
az aks create --resource-group $RG_NAME --name $CLUSTER_NAME --location $LOCATION \
214264
--node-vm-size $VM_SKU --node-count $NODE_COUNT \
215265
--assign-identity $IDENTITY_ID --enable-managed-identity
216266
```
217-
- You can also assign the user-managed identity on an existing managed cluster with update command.
267+
268+
* You can also assign the user-managed identity on an existing managed cluster with update command.
218269

219270
```azurecli-interactive
220271
az aks update --resource-group $RG_NAME --name $CLUSTER_NAME --location $LOCATION \
@@ -541,3 +592,4 @@ When you use an Azure Resource Manager template to create and manage resources,
541592
[az-extension-add]: /cli/azure/extension#az_extension_add
542593
[az-extension-update]: /cli/azure/extension#az_extension_update
543594
[use-node-taints]: ./use-node-taints.md
595+
[az-aks-nodepool-delete-machines]: /cli/azure/aks/nodepool#az_aks_nodepool_delete_machines
72.9 KB
Loading
107 KB
Loading
-33.7 KB
Loading
73.4 KB
Loading
Binary file not shown.

articles/aks/release-tracker.md

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,44 @@
22
title: AKS release tracker
33
description: Learn how to determine which Azure regions have the weekly AKS release deployments rolled out in real time.
44
ms.topic: overview
5-
ms.date: 04/25/2023
5+
ms.date: 05/09/2024
66
ms.author: nickoman
77
author: nickomang
88
ms.custom: mvc, build-2023
99
---
1010

1111
# AKS release tracker
1212

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.
1414

15-
## Why release tracker?
15+
## Overview
1616

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.
1818

19-
## How to use the release tracker
19+
## Use the release tracker
2020

2121
To view the release tracker, visit the [AKS release status webpage][release-tracker-webpage].
2222

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
2424

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.
2626

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.":::
2828

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.":::
3042

3143
<!-- LINKS - external -->
3244
[aks-release]: https://github.com/Azure/AKS/releases
3345
[release-tracker-webpage]: https://releases.aks.azure.com/webpage/index.html
34-

articles/bastion/bastion-overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: cherylmc
55
# 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.
66
ms.service: bastion
77
ms.topic: overview
8-
ms.date: 04/26/2024
8+
ms.date: 04/30/2024
99
ms.author: cherylmc
1010
---
1111
# What is Azure Bastion?

0 commit comments

Comments
 (0)