Skip to content

Commit 6eefd24

Browse files
Merge pull request #236607 from msaenzbosupport/patch-14
[Doc-A-thon]Updating code block
2 parents b9f52ed + 9054086 commit 6eefd24

File tree

1 file changed

+19
-12
lines changed

1 file changed

+19
-12
lines changed

articles/aks/use-wasi-node-pools.md

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ You must have the latest version of Azure CLI installed.
2323

2424
To install the aks-preview extension, run the following command:
2525

26-
```azurecli
26+
```azurecli-interactive
2727
az extension add --name aks-preview
2828
```
2929

3030
Run the following command to update to the latest version of the extension released:
3131

32-
```azurecli
32+
```azurecli-interactive
3333
az extension update --name aks-preview
3434
```
3535

@@ -85,31 +85,36 @@ az aks nodepool show -g myResourceGroup --cluster-name myAKSCluster -n mywasipoo
8585

8686
The following example output shows the *mywasipool* has the *workloadRuntime* type of *WasmWasi*.
8787

88+
```azurecli-interactive
89+
az aks nodepool show -g myResourceGroup --cluster-name myAKSCluster -n mywasipool --query workloadRuntime
90+
```
8891
```output
89-
$ az aks nodepool show -g myResourceGroup --cluster-name myAKSCluster -n mywasipool --query workloadRuntime
9092
"WasmWasi"
9193
```
9294

9395
Configure `kubectl` to connect to your Kubernetes cluster using the [az aks get-credentials][az-aks-get-credentials] command. The following command:
9496

95-
```azurecli
97+
```azurecli-interactive
9698
az aks get-credentials -n myakscluster -g myresourcegroup
9799
```
98100

99101
Use `kubectl get nodes` to display the nodes in your cluster.
100102

103+
```bash
104+
kubectl get nodes -o wide
105+
```
101106
```output
102-
$ kubectl get nodes -o wide
103107
NAME STATUS ROLES AGE VERSION INTERNAL-IP EXTERNAL-IP OS-IMAGE KERNEL-VERSION CONTAINER-RUNTIME
104108
aks-mywasipool-12456878-vmss000000 Ready agent 123m v1.23.12 <WASINODE_IP> <none> Ubuntu 22.04.1 LTS 5.15.0-1020-azure containerd://1.5.11+azure-2
105109
aks-nodepool1-12456878-vmss000000 Ready agent 133m v1.23.12 <NODE_IP> <none> Ubuntu 22.04.1 LTS 5.15.0-1020-azure containerd://1.5.11+azure-2
106110
```
107111

108112
Use `kubectl describe node` to show the labels on a node in the WASI node pool. The following example shows the details of *aks-mywasipool-12456878-vmss000000*.
109113

114+
```bash
115+
kubectl describe node aks-mywasipool-12456878-vmss000000
116+
```
110117
```output
111-
$ kubectl describe node aks-mywasipool-12456878-vmss000000
112-
113118
Name: aks-mywasipool-12456878-vmss000000
114119
Roles: agent
115120
Labels: agentpool=mywasipool
@@ -143,7 +148,7 @@ scheduling:
143148
144149
Use `kubectl` to create the `RuntimeClass` objects.
145150

146-
```azurecli-interactive
151+
```bash
147152
kubectl apply -f wasm-runtimeclass.yaml
148153
```
149154

@@ -198,14 +203,16 @@ spec:
198203

199204
Use `kubectl` to run your example deployment:
200205

201-
```azurecli-interactive
206+
```bash
202207
kubectl apply -f slight.yaml
203208
```
204209

205210
Use `kubectl get svc` to get the external IP address of the service.
206211

212+
```bash
213+
kubectl get svc
214+
```
207215
```output
208-
$ kubectl get svc
209216
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
210217
kubernetes ClusterIP 10.0.0.1 <none> 443/TCP 10m
211218
wasm-slight LoadBalancer 10.0.133.247 <EXTERNAL-IP> 80:30725/TCP 2m47s
@@ -214,7 +221,7 @@ wasm-slight LoadBalancer 10.0.133.247 <EXTERNAL-IP> 80:30725/TCP 2m47s
214221
Access the example application at `http://EXTERNAL-IP/hello`. The following example uses `curl`.
215222

216223
```output
217-
$ curl http://EXTERNAL-IP/hello
224+
curl http://EXTERNAL-IP/hello
218225
hello
219226
```
220227

@@ -225,7 +232,7 @@ hello
225232

226233
To remove the example deployment, use `kubectl delete`.
227234

228-
```azurecli-interactive
235+
```bash
229236
kubectl delete -f slight.yaml
230237
```
231238

0 commit comments

Comments
 (0)