mirror of
https://github.com/siderolabs/extensions.git
synced 2025-08-05 22:07:14 +02:00
|
||
---|---|---|
.. | ||
10-wasm.part | ||
manifest.yaml | ||
pkg.yaml | ||
README.md | ||
vars.yaml |
WasmEdge extension
Installation
Usage
In order to create the Wasm workload, a runtimeclass needs to be created.
apiVersion: node.k8s.io/v1
kind: RuntimeClass
metadata:
name: wasmedge
handler: wasmedge
Testing
Apply the following manifest to run sample pod using wasmedge:
apiVersion: v1
kind: Pod
metadata:
name: wasmedge-test
spec:
restartPolicy: Never
runtimeClassName: wasmedge
containers:
- name: wasmedge-test
image: wasmedge/example-wasi:latest
The pod should run without any errors:
$ kubectl get pods
NAME READY STATUS RESTARTS AGE
wasmedge-test 0/1 Completed 0 28s