Skip to content

Commit 546bb7f

Browse files
authored
Update cannot-scale-cluster-autoscaler-enabled-node-pool.md
1 parent b12f0ec commit 546bb7f

1 file changed

Lines changed: 26 additions & 17 deletions

File tree

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

Lines changed: 26 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,36 @@ Deleting the virtual machine scale set attached to the cluster causes the cluste
4444
> [!NOTE]
4545
> 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.
4646
47+
### Reconcile Node Pool
48+
49+
If the cluster virtual machine scale set is accidentally deleted, you can reconcile the node pool using `az aks nodepool update`:
50+
51+
```bash
52+
# Update Node Pool Configuration
53+
az aks nodepool update --resource-group <resource-group-name> --cluster-name <cluster-name> --name <nodepool-name> --tags <tags> --node-taints <taints> --labels <labels>
54+
55+
# Verify the Update
56+
az aks nodepool show --resource-group <resource-group-name> --cluster-name <cluster-name> --name <nodepool-name>
57+
```
58+
Monitor the node pool to ensure it is functioning as expected and that all nodes are operational.
59+
4760
## Cause 2: Tags or any other properties were modified from the node resource group
4861

4962
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)
5063

64+
### Reconcile Node Resource Group Tags
65+
66+
Ensure the node resource group has the correct tags for AKS name and AKS group name using the Azure CLI:
67+
68+
```bash
69+
# Add or update tags for AKS name and AKS group name
70+
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>
71+
72+
# Verify the tags
73+
az group show --name <node-resource-group-name> --query "tags"
74+
```
75+
Monitor the resource group to ensure the tags are correctly applied and that the resource group is functioning as expected.
76+
5177
## Cause 3: The cluster node resource group was deleted
5278

5379
Deleting the cluster node resource group causes issues when provisioning the infrastructure resources required by the cluster, which causes the cluster autoscaler to fail.
@@ -63,23 +89,6 @@ To resolve this issue, you can run the following command to recover the deleted
6389
az aks update --resource-group <resource-group-name> --name <aks-cluster-name>
6490
```
6591

66-
67-
## Additional Information
68-
69-
### Common Scenarios
70-
71-
- **Scenario 1**: If the cluster virtual machine scale set is accidentally deleted, provide steps to recreate it.
72-
- **Scenario 2**: If tags or properties are modified, detail how to revert these changes.
73-
74-
### Detailed Commands
75-
76-
Include more detailed Azure CLI commands for verifying the existence of the virtual machine scale set and node resource group:
77-
78-
```bash
79-
az vmss list --resource-group <resource-group-name>
80-
az group show --name <node-resource-group-name>
81-
```
82-
8392
### Additional Troubleshooting Tips
8493

8594
- Check the Azure Activity Log for any recent changes or deletions.

0 commit comments

Comments
 (0)