Skip to content

Free, open book · 38 chapters

Learn Kubernetes one chapter at a time

From your first pod to Helm, GitOps, operators and observability, with commands and manifests you run on your own cluster. Read it in order or jump to the chapter you need.

New in this edition

Rewritten from scratch for Kubernetes 1.37, with every command checked against the official documentation.

Let's get startedReplica SetKubernetes ReplicaSet, hands-on: write the manifest, watch Pods self-heal, scale, adopt and orphan Pods, and learn when a Deployment is the better choice.Rewritten · Chapter 8Let's get startedNamespacesA hands-on Kubernetes namespace chapter: what it scopes and what it doesn't, creating and switching namespaces, cross-namespace DNS, quotas and stuck deletes.Rewritten · Chapter 10Let's get startedConfigMapsA hands-on Kubernetes ConfigMap chapter: create one from literals, files and env files, feed it to Pods as env vars or files, and roll out changes safely.Rewritten · Chapter 11Kubernetes Clusters Overview and UseK3s and K3supK3s step by step: what it bundles, the install script and its flags, kubeconfig from your laptop, joining agents with the token, k3sup over SSH, uninstall.Rewritten · Chapter 17Templating & IaCKustomizeKustomize with kubectl 1.37: build a base plus dev and prod overlays, set labels, images and replicas, generate ConfigMaps, patch, and pick Kustomize or Helm.Rewritten · Chapter 18Templating & IaCCrossplaneCrossplane v2 hands-on: install it with Helm, add a provider, create a managed resource, then build your own API with an XRD, a Composition and a function.Rewritten · Chapter 20Cloud Native Tools and Platformsk9sLearn k9s, the Kubernetes terminal UI: install it, drive a real deployment, port-forward and benchmark it, plus a full k9s commands and shortcuts reference.Rewritten · Chapter 24Cloud Native Tools and PlatformsGitOps and ArgoArgo CD tutorial for Argo CD 3.5: install it, log in with the initial admin secret, deploy an Application from Git, then turn on self-heal and prune.Rewritten · Chapter 26Advanced TopicsKubernetes OperatorsWhat a Kubernetes operator is, how CRDs and the reconcile loop fit together, a CloudNativePG install end to end, and building your own with Kubebuilder.Rewritten · Chapter 30Troubleshooting K8sCrashLoopBackOffCrashLoopBackOff explained: what the restart back-off means, the three kubectl commands that find the cause, exit codes, a fix for each cause, kubectl debug.Rewritten · Chapter 35Troubleshooting K8sImagePullBackOffImagePullBackOff in Kubernetes: read the pod events, confirm which of seven causes blocked the pull, from a tag typo to Docker Hub limits, and fix it.New chapter · Chapter 36Troubleshooting K8sOOMKilledOOMKilled in Kubernetes: what exit code 137 means, how to confirm it with kubectl, reproduce it on your own cluster, and size memory limits so it stops.New chapter · Chapter 37

Every chapter

13 parts, in the order a newcomer needs them.

A free, open book for learning Kubernetes one topic at a time. It started as a public challenge: learn something new about Kubernetes every day for 100 days, and write down what you learned. The notes grew into the chapters below, in the order a newcomer needs them.

Each chapter explains one topic with commands and manifests you can run on your own cluster. Chapters marked as rewritten were written again from scratch in October 2026 for Kubernetes 1.37, with every command checked against the official documentation; the rest are the original notes, kept with their sources.

Where to start#

What the book covers#

Terms you meet along the way are collected in the Terminology Primer. To read the book from the first page, open the Introduction, or pick a chapter from the list above.