Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 1.16 KB

File metadata and controls

29 lines (19 loc) · 1.16 KB

Run WasmEdge http server with CRIO in Kubernetes

You can use the CRI-O install.sh script to install CRI-O and crun on Ubuntu 20.04.

wget -qO- https://raw.githubusercontent.com/second-state/wasmedge-containers-examples/main/crio/install.sh | bash

Next, install Kubernetes using the following script.

wget -qO- https://raw.githubusercontent.com/second-state/wasmedge-containers-examples/main/kubernetes_crio/install.sh | bash

The http_server_application.sh script shows how to pull a HTTP Server WebAssembly application from Docker Hub, and then run it as a containerized application in Kubernetes.

wget -qO- https://raw.githubusercontent.com/second-state/wasmedge-containers-examples/main/kubernetes_crio/http_server/http_server_application.sh | bash

You should able to POST with curl and see results from the HTTP Server WebAssembly reply echo in the console.

curl -d "name=WasmEdge" -X POST http://$HOST_IP:1234/post
echo name=WasmEdge

Learn more