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
The following example output shows the three nodes distributed across the specified region and availability zones, such as *eastus2-1* for the first availability zone and *eastus2-2* for the second availability zone:
102
102
103
-
```console
103
+
```output
104
104
Name: aks-nodepool1-28993262-vmss000000
105
105
topology.kubernetes.io/zone=eastus2-1
106
106
Name: aks-nodepool1-28993262-vmss000001
@@ -113,13 +113,13 @@ As you add more nodes to an agent pool, the Azure platform automatically distrib
113
113
114
114
With Kubernetes versions 1.17.0 and later, AKS uses the newer label `topology.kubernetes.io/zone` and the deprecated `failure-domain.beta.kubernetes.io/zone`. You can get the same result from running the `kubelet describe nodes` command in the previous step, by running the following script:
115
115
116
-
```console
116
+
```bash
117
117
kubectl get nodes -o custom-columns=NAME:'{.metadata.name}',REGION:'{.metadata.labels.topology\.kubernetes\.io/region}',ZONE:'{metadata.labels.topology\.kubernetes\.io/zone}'
118
118
```
119
119
120
120
The following example resembles the output with more verbose details:
121
121
122
-
```console
122
+
```output
123
123
NAME REGION ZONE
124
124
aks-nodepool1-34917322-vmss000000 eastus eastus-1
125
125
aks-nodepool1-34917322-vmss000001 eastus eastus-2
@@ -139,7 +139,7 @@ az aks scale \
139
139
140
140
When the scale operation completes after a few minutes, run the command `kubectl describe nodes | grep -e "Name:" -e "topology.kubernetes.io/zone"` in a Bash shell. The following output resembles the results:
By viewing nodes where your pods are running, you see pods are running on the nodes corresponding to three different availability zones. For example, with the command `kubectl describe pod | grep -e "^Name:" -e "^Node:"` in a Bash shell, you see the following example output:
0 commit comments