Hi Team,
I recently saw the issue on github https://github.com/bytecodealliance/wasmtime/issues/358 and I am working on a similar ingratiation with crun ( oci-runtime ) which allows container managers to delegate workload to wasmtime as per needs https://github.com/containers/crun/pull/963
Just sharing it here for feedback. Since it might be time-taking to manually compile and run the PR here is a doc which shows how to run workload on kubernetes: https://github.com/containers/crun/blob/main/docs/wasm-wasi-on-kubernetes.md
PS: This is first time I'm using zulipchat, please correct me if i created thread in a wrong manner :P
Thanks
Hey @flouthoc that's coolio. However it works, integration with k8s is going to be very important (it's the javascript of orchestrators!). We have built a containerd shim, https://github.com/deislabs/runwasi, to smooth the integration task -- Krustlet is a great kubelet but it requires a lot of work to achieve production smoothness. I'd love to try your work out!
Hi @Ralph , Thanks a lot for sharing this :) . Can't wait to try out deislabs/runwasi
, crun
as of now works directly with most of the existing CRI setups with minimal config change here is example with containerd
: https://github.com/containers/crun/blob/main/docs/wasm-wasi-on-kubernetes.md#containerd in crun
since workload delegation happens at the lowest level so users only need to change the OCI runtime and other parts like kubelet
and CRI
setup can remain same. I'll play around with deislabs/runwasi
so that i can write a small summary of comparing both of them.
Sounds good! I'll have a look at the user and ops differences as well
Finally wrote a small blog post on this integration which i was working on: https://opensource.com/article/22/10/wasm-containers
this is great stuff! nicely done. we're taking the containerd shim route, using Spin and slight (the host in the spidermonkey project). We'll be demonstrating that at our booth at KubeCon in a couple of weeks. I think all these ways of using k8s here are going to be incredibly useful to people.
the JavaScript of Orchestrators is a great tool; it's containers that holds it back. :-)
or docker containers, to be specific.....
Ralph said:
this is great stuff! nicely done. we're taking the containerd shim route, using Spin and slight (the host in the spidermonkey project). We'll be demonstrating that at our booth at KubeCon in a couple of weeks. I think all these ways of using k8s here are going to be incredibly useful to people.
@Ralph oh no I'm not attending kubecon but I want to see the demo, is it going to be recorded.
Oh, there should be a few videos I'll post over the next month. I'm doing a NYC k8s meetup this week and a more elaborate presentation at KubeCon, and afterward. For sure!
ok, sorry for the delay @flouthoc. Here's my hour-long meandering K8s meetup talk in NYC prior to KubeCon. YouTube - WebAssembly & Kubernetes: I don't know this cheese of which you speak! - Ralph Squillace, Microsoft. This is of course from the ground up -- why anyone actually cares and so on.
Last updated: Dec 23 2024 at 12:05 UTC