Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 2 additions & 28 deletions functions/knative/wasmedge/http-server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.