-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Containerd runtime detection for wasmedge? #11924
Comments
You've provided no information on what you are doing or what specifically is not working so it's hard to give any specific suggestions on what might be wrong. |
Well, extrapolating from documentation based on nvidia example, I should just install the required binaries (which are in path, see below) and restart k3s (even tried with full stop and start) and I should see something with
Not sure whether I also need to install some |
That looks correct. What happens when you create that pod? |
In the events I get following:
I have also have the # kubectl get runtimeclass wasmedge -oyaml
apiVersion: node.k8s.io/v1
handler: wasmedge
kind: RuntimeClass
metadata:
creationTimestamp: "2024-09-16T18:34:06Z"
labels:
objectset.rio.cattle.io/hash: 57231bea9658cf25fcdac23f1c5685ac7bbcf983
name: wasmedge
resourceVersion: "136936303"
uid: 096b551b-30c9-4151-86c4-9910039e2f1b Anyway, my suspicion is that whatever is supposed to detect
|
It is the wasmedge shim that is the runtime, as far as containerd is concerned. Not the k3s/pkg/agent/containerd/runtimes.go Lines 101 to 104 in 0a47df6
|
Well, documentation could be updated to reflect the need for I was hoping crun built with wasmedge extensions would be autodetected as well (as this seems to actually work, but needs to be configured from containerd side). Sadly there isn't much documentation about this feature upstream either - WasmEdge/WasmEdge#2132
|
I got it working using only crun's wasmedge plugin (which is enabled by default in Fedora) without any extra containerd shims!!!
# wasmedge-demo-pod.yaml
apiVersion: v1
kind: Pod
metadata:
name: wasm-demo-app
annotations:
module.wasm.image/variant: compat
spec:
runtimeClassName: wasmedge
containers:
- name: wasm-demo-app
image: docker.io/cr7258/wasm-demo-app:v1 |
I mean, you're using crun as the shim... but cool, glad it works for you! I'm not sure why the general recommendation is to use |
Is the "K3s will automatically detect alternative container runtimes" as it is advertised in documentation actually working?
Although I have installed wasmedge 0.14.1 from Fedora packages, containerd doesn't seem to be automatically detecting it when restarting k3s (
systemctl restart k3s
).I have verified that webassembly examples are working:
And
example-wasi
even works works when runningk3s ctr run ...
.The text was updated successfully, but these errors were encountered: