K3s is a lightweight, minimal Kubernetes distribution suited to streamlined local clusters. The k3d wrapper runs K3s in Docker and supports single-node or multinode development clusters. section 8.2.1
A practical K3s workflow uses familiar Kubernetes tools:
- Create a cluster with k3d, inspect its nodes with kubectl, and confirm that the node is Ready. section 8.2.1
- Create an isolated namespace, then switch contexts and namespaces with kubectx and kubens. section 8.2.1
- Deploy a Pod from YAML, check its status and logs, and inspect its raw Kubernetes configuration. section 8.2.1
Listing 8.21 Creating a local Kubernetes cluster
> k3d cluster create distml --image rancher/k3s:v1.25.3-rc3-k3s1
Use the cluster-creation command as a compact starting point for a Docker-backed K3s environment. section 8.2.1
