Skip to content

Commit 8e6836c

Browse files
authored
Revise wasm function guide (#115)
Signed-off-by: Benjamin Huo <benjamin@kubesphere.io>
1 parent 53b84d3 commit 8e6836c

File tree

1 file changed

+2
-28
lines changed
  • functions/knative/wasmedge/http-server

1 file changed

+2
-28
lines changed

functions/knative/wasmedge/http-server/README.md

Lines changed: 2 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -29,32 +29,6 @@ $ curl http://localhost:8080/echo -X POST -d "WasmEdge"
2929
WasmEdge
3030
```
3131

32-
## Deployment
32+
## Deployment the wasm function into Kubernetes
3333

34-
> To setup `WasmEdge` workload runtime in kubernetes cluster and push images to a container registry,
35-
> please refer to the [prerequisites](../../getting-started/Quickstarts/prerequisites) section for more info.
36-
37-
1. Create function
38-
39-
```shell
40-
kubectl apply -f wasmedge-http-server.yaml
41-
```
42-
43-
2. Check the function status
44-
45-
```shell
46-
kubectl get functions.core.openfunction.io -w
47-
NAME BUILDSTATE SERVINGSTATE BUILDER SERVING ADDRESS AGE
48-
wasmedge-http-server Succeeded Running builder-4p2qq serving-lrd8c http://wasmedge-http-server.default.svc.cluster.local/echo 12m
49-
```
50-
51-
3. Access function
52-
53-
Once the `BUILDSTATE` becomes `Succeeded` and the `SERVINGSTATE` becomes `Running`, you can access this function through the address in the `ADDRESS` field:
54-
You can observe the process of a function with the following command:
55-
56-
```shell
57-
kubectl run curl --image=radial/busyboxplus:curl -i --tty
58-
curl http://wasmedge-http-server.default.svc.cluster.local/echo -X POST -d "WasmEdge"
59-
WasmEdge
60-
```
34+
You can refer [this](https://openfunction.dev/docs/concepts/wasmedge_integration/#build-and-run-wasm-functions) guide on how to deploy this wasm function into Kubernetes.

0 commit comments

Comments
 (0)