mirror of
https://github.com/siderolabs/extensions.git
synced 2025-08-06 14:27:31 +02:00
Move modules, firmware and libraries to accommodate usrmerged rootfs Only use network where needed via new bldr, pre-download Go dependencies in prepare step, improve Go cache Bump xen-guest-agent to make it build with current Alpine Rust Signed-off-by: Dmitry Sharshakov <dmitry.sharshakov@siderolabs.com> |
||
---|---|---|
.. | ||
10-spin.part | ||
manifest.yaml | ||
pkg.yaml | ||
README.md | ||
vars.yaml |
Spin 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: wasmtime-spin-v2
handler: spin
Testing
Apply the following manifest to run sample pod using spin:
apiVersion: v1
kind: Pod
metadata:
name: spin-test
spec:
containers:
- command:
- /
image: ghcr.io/spinkube/containerd-shim-spin/examples/spin-rust-hello
name: spin-test
runtimeClassName: wasmtime-spin-v2
The pod should run without any errors:
$ kubectl get pods
NAME READY STATUS RESTARTS AGE
spin-test 1/1 Running 0 28s