liveBook · Manning

Kubernetes

As explained in Server-Side WebAssembly

Kubernetes is an open-source system for deploying, scheduling, scaling, and managing containerized workloads across clusters.

Kubernetes is an extensible API system for managing workloads across clusters. Its control plane schedules, scales, and recovers applications, while the data plane runs them on nodes. Although best known for containers, Kubernetes can manage WebAssembly workloads through extensible resources and operators. section 8.0 section 8.1

Kubernetes supports Wasm applications through familiar orchestration patterns:

  • Define application-oriented Custom Resource Definitions instead of composing every application solely from deployments, services, and config maps. section 8.1
  • Use an operator to interpret custom resources and reconcile them into running workloads. section 8.1
  • Reuse Kubernetes capabilities such as scheduling, service discovery, load balancing, failure handling, and autoscaling. section 8.0 section 8.5
  • Choose integrations such as SpinKube for Spin applications or wasmCloud for host environments managed through NATS and wadm. section 8.5

Deploying SmartCMS

A SmartCMS deployment pushes the application to a registry, adapts wadm.yaml for Kubernetes, deploys Ollama as the LLM backend, and applies the manifest with kubectl apply -f wadm.yaml. After checking wash app status smart-cms, port-forward the wasmCloud host and open the application locally. Logs from the wasmcloud-host container provide the first debugging step when deployment stalls. section 8.4 section 8.4.3

Figure 8.1 Kubernetes architecture showing the control plane (API server, scheduler, controller manager) and data plane (nodes with pods). The control plane manages cluster state and makes scheduling decisions, while the data plane runs the actual workloads. Users interact with the cluster through the API server, typically using kubectl commands or YAML manifests.

Use the architecture figure to distinguish API-server-driven control-plane decisions from workload execution in data-plane nodes. section 8.1

How Server-Side WebAssembly covers it

How deep it goes
Explains control-plane architecture, CRDs, operators, deployment workflows, and scaling, but defers detailed operator implementation.
Examples
Uses SmartCMS, Ollama, wadm.yaml, kubectl commands, wash status output, port forwarding, and Kubernetes architecture figures.
What it assumes
Assumes an OCI-packaged Wasm application and an existing SmartCMS or wasmCloud deployment configuration.
What you can do after
Operate/configure a Wasm application on Kubernetes using manifests, wasmCloud tooling, port forwarding, status checks, and logs.
How it connects
Connects containers, WebAssembly, control planes, data planes, CRDs, operators, SpinKube, wasmCloud, NATS, and horizontal autoscaling.

Also explained in

Compare how 22 books explain Kubernetes →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Server-Side WebAssembly. The section links point to the parts of the book it draws on.