Part 5 8 chapters

Deploying to Kubernetes

Run Wasm workloads on minikube and OpenShift Local (CRC), place a component as a sidecar or an ambassador/adapter, scale with the HPA and scale to zero with KEDA, and bring up observability on-cluster.

Chapter 17

Wasm on Kubernetes

How a Wasm component runs on Kubernetes: the containerd Wasm shim that replaces runc for a Pod, the RuntimeClass that routes a Pod to it, how the shim gets onto a node, and where it sits among SpinKube, the wasmCloud operator and Krustlet.

15 min readRead →
Chapter 18

Deploying on minikube

Running the cargo wasi:http component as a Pod on minikube, scheduled onto the containerd-shim-wasmtime shim by a RuntimeClass and reached through ingress-nginx.

15 min readRead →
Chapter 19

Deploying on OpenShift Local (CRC)

Deploying the cargo wasi:http component to OpenShift Local with the wasmCloud operator under restricted-v2, exposed through a CA-verified edge-TLS Route.

17 min readRead →
Chapter 20

Wasm as a Sidecar

A Wasm component that imports and exports the same interfaces sits between a provider and its HTTP front door to enforce an embargo policy, composed at build time on minikube or linked at runtime on CRC.

18 min readRead →
Chapter 21

Ambassador and Adapter Patterns with Wasm

An adapter that round-trips bookings through a legacy request shape and an ambassador that reaches its dependency only through an explicit grant, each deployed on minikube or CRC where the platform allows it.

22 min readRead →
Chapter 22

Scaling Wasm Workloads: HPA

A stock HPA attaches cleanly to a Wasm Deployment on minikube but never sees enough CPU to scale it; on CRC the wadm spreadscaler instance count is the lever, because the operator leaves an HPA nothing to target.

19 min readRead →
Chapter 23

Serverless Wasm: Scale-to-Zero with KEDA

Scale a Wasm workload to zero with KEDA's HTTP add-on and its Kafka scaler, and see where a component's cold start beats a container's.

20 min readRead →
Chapter 24

Observability On-Cluster

On a cluster, the substrate emits the telemetry for a Wasm component: the containerd shim exports traces on minikube, the wasmCloud host exports traces, metrics and logs on CRC. The guest emits none.

19 min readRead →