Search⌘ K

Wasm on Kubernetes

Explore how to run WebAssembly applications on Kubernetes by using containerd with Wasm shims. Understand the architecture involving Wasm runtimes, how to deploy Wasm apps as OCI images, configure RuntimeClass, and schedule workloads to nodes with specific Wasm shims for seamless application management.

We'll cover the following...

Running WebAssembly on Kubernetes

In this lesson, we'll introduce the major requirements for running Wasm apps on Kubernetes clusters that use containerd. Other ways to run Wasm apps on Kubernetes exist.

It’s widely understood that Kubernetes is a high-level orchestrator that uses other tools to perform low-level tasks such as creating, starting, and stopping containers. The most common configuration is Kubernetes using containerd to manage these low-level tasks.

The following figure shows Kubernetes scheduling tasks to a worker node running containerd. containerd instructs runc to build the container and start the app. After the container is created, runc exits, and the shim process maintains the connection between the running container and containerd.

Scheduling tasks to a worker node
Scheduling tasks to a worker node

In this architecture, everything below containerd is ...