k3d runs a local Kubernetes cluster in Docker containers. Its fast, lightweight setup makes it a practical development and testing environment before deploying Spin-based WebAssembly workloads to Kubernetes. section 8.2
For a SpinKube environment, create a cluster with a k3d image containing the containerd-shim-spin runtime. The setup exposes the cluster load balancer’s port 80 on local port 8081 and adds two agent nodes for scheduled workloads. section 8.2.1
Create a local Wasm cluster
Run the cluster-create command, then prepare Kubernetes with cert-manager, a Spin RuntimeClass, SpinKube CRDs, and the Spin operator. The custom image enables Kubernetes to launch Spin-based Wasm workloads. section 8.2.1
k3d cluster create wasm-cluster --image ghcr.io/spinframework/containerd-
➥shim-spin/k3d:v0.19.0 --port "8081:80@loadbalancer" --agents 2
Creates the wasm-cluster with the Spin-enabled k3d image, local load-balancer port mapping, and two agent nodes. section 8.2.1


