liveBook · Manning

K3d

k3d is a command-line tool for running lightweight k3s Kubernetes clusters inside Docker containers.

How 3 Manning books explain it

Server-Side WebAssembly

k3d is a lightweight command-line tool for running local Kubernetes clusters in Docker containers.

How it is used
Provides a local Kubernetes cluster for developing and testing SpinKube deployments.
How deep it goes
Explains cluster creation and its Spin runtime, port, and agent-node configuration without detailing k3d internals.
Examples
Demonstrates creating wasm-cluster with a Spin-enabled image, port 8081 mapping, and two agent nodes.
What you can do after
Operate/configure a local two-agent Kubernetes cluster ready for Spin-based Wasm workloads.

Read how Server-Side WebAssembly explains k3d →

Learn Docker in a Month of Lunches, Second Edition

k3d is a lightweight command-line tool for running k3s Kubernetes clusters inside Docker containers.

How it is used
Uses Docker-backed k3s clusters to test Kubernetes deployments near the end of a CI/CD pipeline.
How deep it goes
Explains containerized nodes, multi-node testing, and workflow integration, but defers local installation and detailed argument meanings.
Examples
Demonstrates a one-node ch16 cluster created by GitHub Actions and selected through the k3d-ch16 kubectl context.
What you can do after
Operate/configure a temporary Kubernetes test cluster through a GitHub Action and kubectl.

Read how Learn Docker in a Month of Lunches, Second Edition explains k3d →

Distributed Machine Learning Patterns

A lightweight command-line wrapper for running k3s clusters in Docker.

How it is used
Bootstraps local Kubernetes clusters for development workflows requiring Kubernetes.
How deep it goes
Explains the wrapper’s role and demonstrates cluster creation, node inspection, namespaces, and subsequent Pod operations.
Examples
Uses a distml cluster, node listings, the basics namespace, and a whalesay Pod.
What you can do after
Operate a local k3s cluster through k3d and inspect it with kubectl.

Read how Distributed Machine Learning Patterns explains k3d →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.