liveBook · Manning

Pod

As explained in Server-Side WebAssembly

A Kubernetes pod is the smallest deployable Kubernetes unit that groups one or more containers sharing network and storage context.

A pod is Kubernetes’ smallest deployable unit. It packages a workload for scheduling on a node; in this setup, a pod typically runs one container or one Wasm module. Kubernetes places pods across available nodes according to resources. section 8.2.1

Pods are designed to be replaceable. A Deployment manages groups of identical pods for scaling, updates, and recovery, while a Service gives changing pods a stable network address and load balancing. section 8.1

For Spin-based Wasm workloads, pod execution depends on cluster preparation:

  • Create nodes with a containerd-shim-spin-enabled cluster image so Kubernetes can run Spin workloads. section 8.2.1
  • Define a RuntimeClass that selects the Spin handler instead of the node’s default container runtime. section 8.2.1
  • Install SpinKube CRDs and its operator, which orchestrate submitted Spin application resources. section 8.1 section 8.2.1

Two-node local cluster

Create a local cluster with two agent nodes and expose its load balancer on port 8081. Later deployments can package Spin applications into pods and schedule them across those nodes. section 8.2.1

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.

View how the control plane schedules and manages pods on data-plane nodes, with users submitting desired state through the API server. section 8.1

How Server-Side WebAssembly covers it

How deep it goes
Defines pods and traces their scheduling across nodes, but defers detailed pod specification and lifecycle internals.
Examples
Uses a two-agent-node k3d cluster that later runs Spin applications as pods.
What it assumes
Introduces YAML manifests and core Kubernetes workload terms while orienting Wasm developers to Kubernetes concepts.
What you can do after
Operate/configure it by preparing a two-node Spin-enabled cluster where Kubernetes can schedule Wasm workload pods.
How it connects
Connects pods to Deployments, Services, namespaces, nodes, RuntimeClass, container runtimes, CRDs, and operators.

Also explained in

Compare how 15 books explain pod →

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.