SpinKube: WebAssembly Workloads on Kubernetes

Shriira Press

Preface

Run WebAssembly applications on Kubernetes as first-class workloads — tiny artifacts, millisecond cold starts, and a familiar operator-driven workflow.

Welcome to SpinKube: WebAssembly Workloads on Kubernetes.

SpinKube is a CNCF sandbox project that lets you run Spin WebAssembly applications on Kubernetes as naturally as you run containers. Instead of packaging a whole operating system into an image, you compile your application to a small .wasm module that starts in milliseconds, sandboxes itself by default, and packs densely onto a node. SpinKube makes those modules behave like ordinary Kubernetes workloads through four cooperating pieces: a containerd-shim-spin built on runwasi that teaches the node how to execute Wasm, a Spin Operator that reconciles two custom resources called SpinApp and SpinAppExecutor, a runtime-class-manager that installs the shim across your fleet, and a spin kube CLI plugin that scaffolds and deploys. This book walks you from the problem Wasm solves, through Spin and the component model, the shim and RuntimeClass, the operator and its CRDs, packaging and deployment, scaling and runtime configuration, and finally operating SpinKube in production. By the end you will understand not just the commands but why each layer exists.

This title is part of the ShriIra library and is free to read in full, right here — our small contribution to making world-class knowledge easy to reach.

A note on reading it: open the Contents menu at the top of the reader to jump between chapters, use the Aa menu to set a comfortable text size, theme (light, sepia, or night), and single- or two-page layout. Your place is saved automatically, so you can always pick up where you left off.

We hope it serves you well.

— Shriira Press

Contents

  1. Chapter 1 — Why WebAssembly on Kubernetes
  2. Chapter 2 — Spin and the Component Model
  3. Chapter 3 — The Shim, runwasi, and RuntimeClass
  4. Chapter 4 — The Spin Operator and Its CRDs
  5. Chapter 5 — Packaging and Deploying a SpinApp
  6. Chapter 6 — Scaling, Configuration, and Observability
  7. Chapter 7 — SpinKube in Practice
0%
1/1