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: support/azure/azure-kubernetes/create-upgrade-delete/cannot-scale-cluster-autoscaler-enabled-node-pool.md
+26-17Lines changed: 26 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,10 +44,36 @@ Deleting the virtual machine scale set attached to the cluster causes the cluste
44
44
> [!NOTE]
45
45
> 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.
46
46
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
+
47
60
## Cause 2: Tags or any other properties were modified from the node resource group
48
61
49
62
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)
50
63
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
+
51
77
## Cause 3: The cluster node resource group was deleted
52
78
53
79
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
63
89
az aks update --resource-group <resource-group-name> --name <aks-cluster-name>
64
90
```
65
91
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
-
83
92
### Additional Troubleshooting Tips
84
93
85
94
- Check the Azure Activity Log for any recent changes or deletions.
0 commit comments