@@ -23,13 +23,13 @@ You must have the latest version of Azure CLI installed.
23
23
24
24
To install the aks-preview extension, run the following command:
25
25
26
- ``` azurecli
26
+ ``` azurecli-interactive
27
27
az extension add --name aks-preview
28
28
```
29
29
30
30
Run the following command to update to the latest version of the extension released:
31
31
32
- ``` azurecli
32
+ ``` azurecli-interactive
33
33
az extension update --name aks-preview
34
34
```
35
35
@@ -85,31 +85,36 @@ az aks nodepool show -g myResourceGroup --cluster-name myAKSCluster -n mywasipoo
85
85
86
86
The following example output shows the * mywasipool* has the * workloadRuntime* type of * WasmWasi* .
87
87
88
+ ``` azurecli-interactive
89
+ az aks nodepool show -g myResourceGroup --cluster-name myAKSCluster -n mywasipool --query workloadRuntime
90
+ ```
88
91
``` output
89
- $ az aks nodepool show -g myResourceGroup --cluster-name myAKSCluster -n mywasipool --query workloadRuntime
90
92
"WasmWasi"
91
93
```
92
94
93
95
Configure ` kubectl ` to connect to your Kubernetes cluster using the [ az aks get-credentials] [ az-aks-get-credentials ] command. The following command:
94
96
95
- ``` azurecli
97
+ ``` azurecli-interactive
96
98
az aks get-credentials -n myakscluster -g myresourcegroup
97
99
```
98
100
99
101
Use ` kubectl get nodes ` to display the nodes in your cluster.
100
102
103
+ ``` bash
104
+ kubectl get nodes -o wide
105
+ ```
101
106
``` output
102
- $ kubectl get nodes -o wide
103
107
NAME STATUS ROLES AGE VERSION INTERNAL-IP EXTERNAL-IP OS-IMAGE KERNEL-VERSION CONTAINER-RUNTIME
104
108
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
105
109
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
106
110
```
107
111
108
112
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* .
109
113
114
+ ``` bash
115
+ kubectl describe node aks-mywasipool-12456878-vmss000000
116
+ ```
110
117
``` output
111
- $ kubectl describe node aks-mywasipool-12456878-vmss000000
112
-
113
118
Name: aks-mywasipool-12456878-vmss000000
114
119
Roles: agent
115
120
Labels: agentpool=mywasipool
@@ -143,7 +148,7 @@ scheduling:
143
148
144
149
Use ` kubectl` to create the `RuntimeClass` objects.
145
150
146
- ` ` ` azurecli-interactive
151
+ ` ` ` bash
147
152
kubectl apply -f wasm-runtimeclass.yaml
148
153
` ` `
149
154
@@ -198,14 +203,16 @@ spec:
198
203
199
204
Use `kubectl` to run your example deployment :
200
205
201
- ` ` ` azurecli-interactive
206
+ ` ` ` bash
202
207
kubectl apply -f slight.yaml
203
208
` ` `
204
209
205
210
Use `kubectl get svc` to get the external IP address of the service.
206
211
212
+ ` ` ` bash
213
+ kubectl get svc
214
+ ` ` `
207
215
` ` ` output
208
- $ kubectl get svc
209
216
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
210
217
kubernetes ClusterIP 10.0.0.1 <none> 443/TCP 10m
211
218
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
214
221
Access the example application at `http://EXTERNAL-IP/hello`. The following example uses `curl`.
215
222
216
223
` ` ` output
217
- $ curl http://EXTERNAL-IP/hello
224
+ curl http://EXTERNAL-IP/hello
218
225
hello
219
226
` ` `
220
227
@@ -225,7 +232,7 @@ hello
225
232
226
233
To remove the example deployment, use `kubectl delete`.
227
234
228
- ` ` ` azurecli-interactive
235
+ ` ` ` bash
229
236
kubectl delete -f slight.yaml
230
237
` ` `
231
238
0 commit comments