Skip to content

Commit 385d36c

Browse files
Merge pull request #236554 from msaenzbosupport/patch-18
[Doc-a-thon] Code block updated
2 parents 6eefd24 + 8019770 commit 385d36c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

articles/aks/availability-zones.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ kubectl describe nodes | grep -e "Name:" -e "topology.kubernetes.io/zone"
100100

101101
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:
102102

103-
```console
103+
```output
104104
Name: aks-nodepool1-28993262-vmss000000
105105
topology.kubernetes.io/zone=eastus2-1
106106
Name: aks-nodepool1-28993262-vmss000001
@@ -113,13 +113,13 @@ As you add more nodes to an agent pool, the Azure platform automatically distrib
113113

114114
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:
115115

116-
```console
116+
```bash
117117
kubectl get nodes -o custom-columns=NAME:'{.metadata.name}',REGION:'{.metadata.labels.topology\.kubernetes\.io/region}',ZONE:'{metadata.labels.topology\.kubernetes\.io/zone}'
118118
```
119119

120120
The following example resembles the output with more verbose details:
121121

122-
```console
122+
```output
123123
NAME REGION ZONE
124124
aks-nodepool1-34917322-vmss000000 eastus eastus-1
125125
aks-nodepool1-34917322-vmss000001 eastus eastus-2
@@ -139,7 +139,7 @@ az aks scale \
139139

140140
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:
141141

142-
```console
142+
```output
143143
Name: aks-nodepool1-28993262-vmss000000
144144
topology.kubernetes.io/zone=eastus2-1
145145
Name: aks-nodepool1-28993262-vmss000001
@@ -161,7 +161,7 @@ kubectl scale deployment nginx --replicas=3
161161

162162
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:
163163

164-
```console
164+
```output
165165
Name: nginx-6db489d4b7-ktdwg
166166
Node: aks-nodepool1-28993262-vmss000000/10.240.0.4
167167
Name: nginx-6db489d4b7-v7zvj

0 commit comments

Comments
 (0)