Stream: wasmtime on k8s

Topic: OCI-wrapper


view this post on Zulip flouthoc (Jul 12 2022 at 05:39):

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

Hi all, recently I found an experiment project called containerd-wasm developed by containerd team, and I believe it's a fantanstic idea to combine container management layer (such like Docker ...
Following PR initiates and adds support for crun to be able to build and run wasm/wasi workload in a native manner using wasmtime. Crun already supports running wasm workload using wasmer and wasme...
A fast and lightweight fully featured OCI runtime and C library for running containers - crun/wasm-wasi-on-kubernetes.md at main · containers/crun

view this post on Zulip Ralph (Jul 12 2022 at 20:37):

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!

Contribute to deislabs/runwasi development by creating an account on GitHub.

view this post on Zulip flouthoc (Jul 13 2022 at 11:21):

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.

A fast and lightweight fully featured OCI runtime and C library for running containers - crun/wasm-wasi-on-kubernetes.md at main · containers/crun

view this post on Zulip Ralph (Jul 13 2022 at 11:44):

Sounds good! I'll have a look at the user and ops differences as well

view this post on Zulip flouthoc (Oct 06 2022 at 03:57):

Finally wrote a small blog post on this integration which i was working on: https://opensource.com/article/22/10/wasm-containers

Run Wasm/WASI workloads natively on Podman and Kubernetes using crun.

view this post on Zulip Ralph (Oct 07 2022 at 15:52):

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.

view this post on Zulip Ralph (Oct 07 2022 at 16:02):

the JavaScript of Orchestrators is a great tool; it's containers that holds it back. :-)

view this post on Zulip Ralph (Oct 07 2022 at 16:02):

or docker containers, to be specific.....

view this post on Zulip flouthoc (Oct 09 2022 at 06:45):

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.

view this post on Zulip Ralph (Oct 09 2022 at 22:41):

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!

view this post on Zulip Ralph (Dec 06 2022 at 11:14):

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: Nov 22 2024 at 16:03 UTC