Skip to content

Commit b79e0af

Browse files
authored
Update cannot-scale-cluster-autoscaler-enabled-node-pool.md
1 parent db4670c commit b79e0af

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

support/azure/azure-kubernetes/create-upgrade-delete/cannot-scale-cluster-autoscaler-enabled-node-pool.md

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,36 @@ Deleting the virtual machine scale set attached to the cluster causes the cluste
4545
> [!NOTE]
4646
> Modifying any resource under the node resource group in the AKS cluster is an unsupported action and will cause cluster operation failures. You can prevent changes from being made to the node resource group by [blocking users from modifying resources](/azure/aks/cluster-configuration#fully-managed-resource-group-preview) managed by the AKS cluster.
4747
48+
### Reconcile node pool
49+
50+
If the cluster virtual machine scale set is accidentally deleted, you can reconcile the node pool by using `az aks nodepool update`:
51+
52+
```bash
53+
# Update Node Pool Configuration
54+
az aks nodepool update --resource-group <resource-group-name> --cluster-name <cluster-name> --name <nodepool-name> --tags <tags> --node-taints <taints> --labels <labels>
55+
56+
# Verify the Update
57+
az aks nodepool show --resource-group <resource-group-name> --cluster-name <cluster-name> --name <nodepool-name>
58+
```
59+
Monitor the node pool to make sure that it's functioning as expected and that all nodes are operational.
60+
4861
## Cause 2: Tags or any other properties were modified from the node resource group
4962

5063
You may receive scaling errors if you modify or delete Azure-created tags and other resource properties in the node resource group. For more information, see [Can I modify tags and other properties of the AKS resources in the node resource group?](/azure/aks/faq#can-i-modify-tags-and-other-properties-of-the-aks-resources-in-the-node-resource-group)
5164

65+
### Reconcile node resource group tags
66+
67+
Use the Azure CLI to make sure that the node resource group has the correct tags for AKS name and the AKS group name:
68+
69+
```bash
70+
# Add or update tags for AKS name and AKS group name
71+
az group update --name <node-resource-group-name> --set tags.AKS-Managed-Cluster-Name=<aks-managed-cluster-name> tags.AKS-Managed-Cluster-RG=<aks-managed-cluster-rg>
72+
73+
# Verify the tags
74+
az group show --name <node-resource-group-name> --query "tags"
75+
```
76+
Monitor the resource group to make sure that the tags are correctly applied and that the resource group is functioning as expected.
77+
5278
## Cause 3: The cluster node resource group was deleted
5379

5480
Deleting the cluster node resource group causes issues when provisioning the infrastructure resources required by the cluster, which causes the cluster autoscaler to fail.
@@ -69,4 +95,4 @@ export AKS_CLUSTER_NAME="MyAksCluster$RANDOM_SUFFIX"
6995
az aks update --resource-group $AKS_RG_NAME --name $AKS_CLUSTER_NAME --no-wait
7096
```
7197

72-
[!INCLUDE [Azure Help Support](../../../includes/azure-help-support.md)]
98+
[!INCLUDE [Azure Help Support](../../../includes/azure-help-support.md)]

0 commit comments

Comments
 (0)