diff --git a/functions/knative/wasmedge/http-server/README.md b/functions/knative/wasmedge/http-server/README.md index 6ffa1be..6c30765 100644 --- a/functions/knative/wasmedge/http-server/README.md +++ b/functions/knative/wasmedge/http-server/README.md @@ -29,32 +29,6 @@ $ curl http://localhost:8080/echo -X POST -d "WasmEdge" WasmEdge ``` -## Deployment +## Deployment the wasm function into Kubernetes -> To setup `WasmEdge` workload runtime in kubernetes cluster and push images to a container registry, -> please refer to the [prerequisites](../../getting-started/Quickstarts/prerequisites) section for more info. - -1. Create function - -```shell -kubectl apply -f wasmedge-http-server.yaml - ``` - -2. Check the function status - -```shell -kubectl get functions.core.openfunction.io -w -NAME BUILDSTATE SERVINGSTATE BUILDER SERVING ADDRESS AGE -wasmedge-http-server Succeeded Running builder-4p2qq serving-lrd8c http://wasmedge-http-server.default.svc.cluster.local/echo 12m - ``` - -3. Access function - -Once the `BUILDSTATE` becomes `Succeeded` and the `SERVINGSTATE` becomes `Running`, you can access this function through the address in the `ADDRESS` field: -You can observe the process of a function with the following command: - -```shell -kubectl run curl --image=radial/busyboxplus:curl -i --tty -curl http://wasmedge-http-server.default.svc.cluster.local/echo -X POST -d "WasmEdge" -WasmEdge -``` +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. \ No newline at end of file