Stream: wasmtime on k8s

Topic: containerd and runwasi


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

Hi all, wanted to surface a few things the Deislabs team (my team) at Microsoft has done to make wasm work "natively" in Kubernetes. We had tried a kubelet with krustlet, and it worked fine but you have to treat the node as a special thing AND you have to rebuild all the networking and storage and it just gets very hard to do that work only for wasm support with a "special" node.

view this post on Zulip Ralph (Dec 06 2022 at 12:42):

We went, in the end, with a containerd shim model, which presents wasmtime-based services as "pods" and handles requests with wasi or wasi-based wasm components per-request.

view this post on Zulip Ralph (Dec 06 2022 at 12:43):

It's very nice, and we think we're working on the best path for general wasi and component usage in Kubernetes. That shim is https://github.com/containerd/runwasi, but you can also easily try it out on k3s: https://github.com/deislabs/containerd-wasm-shims/blob/main/deployments/k3d/README.md#how-to-run-the-example

Facilitates running Wasm / WASI workloads managed by containerd - GitHub - containerd/runwasi: Facilitates running Wasm / WASI workloads managed by containerd
containerd shims for running WebAssembly workloads in Kubernetes - containerd-wasm-shims/README.md at main · deislabs/containerd-wasm-shims

view this post on Zulip Ralph (Dec 06 2022 at 12:44):

this is the shim that is running in Azure Kubernetes Service preview as well as our connected IoT service, called AKS Lite. It's all the same, all with wasmtime and wasi.

view this post on Zulip Ralph (Mar 09 2023 at 15:42):

some updates in this area:

view this post on Zulip Ralph (Mar 09 2023 at 15:42):

  1. picked up the CVE fixed versions of wasmtime

view this post on Zulip Ralph (Mar 09 2023 at 15:42):

  1. updated versions of spin and slight shims based on runwasi

view this post on Zulip Ralph (Mar 09 2023 at 15:44):

  1. Got runwasi building and pushing as a rust crate (finally) -- https://crates.io/crates/containerd-shim-wasm

view this post on Zulip Ralph (Mar 09 2023 at 15:44):

  1. VMware's wasm workers are now running on runwasi shims, hope to have that out soon somewhere in k8s-ville

view this post on Zulip Ralph (Mar 09 2023 at 15:45):

  1. Docker Desktop is up and running with the unified runwasi shim set, should publish a new version using wasmtime and wasmedge soon.

view this post on Zulip Ralph (Mar 09 2023 at 15:45):

<3 that is all


Last updated: Dec 23 2024 at 12:05 UTC