Use WasmEdge with Kubernetes
Run a workload on a prepared cluster
Find out which WasmEdge runtime your cluster provides. If the cluster uses a RuntimeClass, list the available names with kubectl get runtimeclass and use the one supplied by your cluster administrator in the Pod's spec.runtimeClassName.
On a cluster configured like the K3s example, the class is named wasmedge. Run the sample Pod, check that it reaches Completed, and read the application's output with kubectl logs wasi-demo. For a crun configuration that selects WasmEdge by annotation, use the containerd + crun Pod example or the CRI-O + crun Pod example.
Enable WasmEdge on cluster nodes
Choose the guide that matches the software managing containers on your worker nodes.
| Environment | Configure the node runtime |
|---|---|
| K3s | Install the WasmEdge shim and verify the RuntimeClass. |
| containerd with runwasi | Install the shim, then register a Kubernetes runtime handler. |
| containerd with crun | Configure containerd and crun and deploy a sample Pod. |
| CRI-O with crun | Configure CRI-O and crun and deploy a sample Pod. |
Once the handler or crun integration is in place, run the matching sample above to confirm a node can execute the workload.