Docker ended with BookNest running as a Swarm 514 stack, and Jenkins gave it a Jenkins 8,793 pipeline that builds the image and pushes it to a registry. What is still missing is the platform most teams run such an image on in production: Kubernetes 5,150 , the open-source container orchestrator that every major cloud offers as a managed service.
Kubernetes' reputation for complexity is partly earned: an API server, a database, a scheduler, a dozen controllers, an agent on every node and dozens of object kinds. The idea underneath is simple. You declare the state you want, the API server stores it, and independent control loops keep moving the real world toward it. Every feature in this chapter, from Deployments to Helm 29,435 charts to GitOps, is a variation on that pattern.
Everything runs for real on a kind 14,561 cluster (Kubernetes 1.37 in Docker 514 containers, one control-plane node and one worker) in Ubuntu 26.04 225 under WSL2 6 , on a machine with four logical CPUs, driven by kubectl 1.37.1 5,150 .
What you will learn:
Why orchestration exists, and how the control plane, nodes and reconciliation loop work inside
kind, k3d and minikube 14,561 compared; kubectl, kubeconfig and the object model
Pods, Deployments, Services, Ingress and the Gateway API, configuration, storage and StatefulSets
Jobs, probes, autoscaling, RBAC, Pod Security and NetworkPolicies
Helm, Kustomize 547,809 , operators, GitOps with Argo CD 126 , observability, managed clouds and cluster tools
Sections
- Why Orchestration
- The Control Plane
- How Nodes Run Containers
- The Reconciliation Loop
- Local Clusters
- The kind Cluster
- kubectl and kubeconfig
- Pods
- Deployments and Rollouts
- Services and Cluster DNS
- Ingress and the Gateway API
- ConfigMaps and Secrets
- Volumes and Storage
- StatefulSets and PostgreSQL
- Batch and Node-Level Workloads
- Probes and Resources
- Autoscaling Pods and Nodes
- Namespaces and Labels
- RBAC and Service Accounts
- Pod Security and Policies
- Secrets Management
- Packaging BookNest with Helm
- Kustomize Overlays
- Operators and CRDs
- GitOps with Argo CD
- Observability and Debugging
- Managed Kubernetes
- Tools and Dashboard
- Test Yourself!