Preface
Setting up a Kubernetes cluster takes an afternoon. Keeping it alive for three years is a different job: upgrades three times a year, certificates that expire after twelve months, an etcd database that grows, nodes that have to be replaced, kernel patches every week. That is day 2, operations after the first day. And while you do all this, nobody should notice that you are working on the cluster.
This course trains exactly that, in the terminal and with measurements. Every day a load generator sends requests to a test application, and a second probe queries the API. Every day ends with a number, not with a feeling: “0 errors in 1,730 requests”, or honestly “7 errors in 20 seconds” when something went wrong, and why.
Over 17 days you take a kubeadm cluster with three control plane nodes from v1.35 via v1.36 to v1.37, once with instructions and once on your own, including a restore from an etcd snapshot. You renew certificates, maintain etcd, replace a control plane node, clean up, plan capacity, automate upgrades with k3s and the system-upgrade-controller, and patch all nodes following a runbook. At the end come a competition and a final exam.
The book is for platform and DevOps engineers and admins who are
responsible for a self-managed cluster. You should know Pods,
Deployments, Services, Helm and kubectl from everyday work.
It is not an exam book.
Scope. “CKA hands-on” and “Kubernetes hands-on” each practice a single upgrade at exam pace. This course is about repeating it over years, without downtime and with a way back. “Debugging Kubernetes hands-on” trains troubleshooting, “Backup and disaster recovery” (planned) the complete backup. Here only the etcd snapshot appears, as the way back. Both are mentioned briefly but never assumed.
How the book works
- One day, one topic. Each day has a goal, a time estimate, a short briefing and 5–8 drills. You type every command yourself and compare with “Expected”.
- Measure instead of hope. The load generator
lastand the API probe run on every day on which something could be interrupted. The error count at the end is the result of the day. - No helper scripts. Every step is shown as a single command, manifests and units as heredocs, including the checkpoint at the end of each day.
- Interventions are marked. Everything that changes the control plane, etcd or certificates has a Warning box.
- Speed Drills, Checkpoint, Challenge, Interview Note, Enterprise Note close every day. The challenge is a task without instructions, with a hint and a solution. The interview note collects questions from job interviews and on-call duty; the enterprise note says what is different in large environments.
- Where the command runs is stated in the first line
of each code block:
# on cp2,# on cp3or# on k3s. Without such a line, it runs oncp1.
At the end:
- Competition (Day 16): a maintenance night with five incidents, against the clock and without a single failed request.
- Appendix A is the cheat sheet: upgrade order, commands for etcd, certificates and nodes, the traps from the book. Appendix B is the final exam with ten tasks.
The days at a glance
| Day | Topic | Duration |
|---|---|---|
| 0 | The training ground: kubeadm with three control plane nodes, kube-vip, Cilium | approx. 90 min |
| 1 | Inventory: what is actually running here? | approx. 45 min |
| 2 | What a careless drain costs | approx. 45 min |
| 3 | Staying reachable: probes, PDBs, spread | approx. 60 min |
| 4 | Find deprecated APIs before they disappear | approx. 45 min |
| 5 | Upgrade plan and the way back | approx. 45 min |
| 6 | Upgrade to v1.36: the control plane | approx. 75 min |
| 7 | Upgrade to v1.36: the kubelets | approx. 45 min |
| 8 | Add-ons in the right order | approx. 60 min |
| 9 | v1.37 on your own, and the emergency | approx. 120 min |
| 10 | Certificates, before they expire | approx. 75 min |
| 11 | Maintaining etcd | approx. 75 min |
| 12 | Replacing a control plane node | approx. 75 min |
| 13 | Cleanup and capacity | approx. 60 min |
| 14 | Automating upgrades with k3s | approx. 60 min |
| 15 | Patching the operating system with a runbook | approx. 90 min |
| 16 | Competition: the maintenance night | approx. 90 min |
Time: Days 0 to 15 add up to just under 18 hours (1065 minutes); the competition and the final exam add one and a half and two hours, a good 21 hours in total. With one training day per evening and five evenings per week, you are through in three and a half weeks.
The training ground
| VM | Role | IP in the book | In the lab |
|---|---|---|---|
cp1 |
Control plane, etcd, workloads, workstation | 172.16.0.126 | 4 vCPU, 11 GiB |
cp2 |
Control plane, etcd, workloads | 172.16.0.228 | 2 vCPU, 3.8 GiB |
cp3 |
Control plane, etcd, workloads | 172.16.0.83 | 2 vCPU, 3.8 GiB |
k3s |
k3s server for the system-upgrade-controller (Day 14) | 172.16.0.182 | 4 vCPU, 7.8 GiB |
- The virtual address of the API (kube-vip) is 172.16.0.100:6443. All three nodes are control plane nodes with stacked etcd and also run workloads. This way you practice drain, PDBs and node replacement without downtime for real, with only three VMs.
- All VMs run Ubuntu 24.04 with SSH access and
sudo. You need the VMk3sonly on Day 14; it can also be one of the other machines in your lab. - Internet access from the VMs for packages
(
pkgs.k8s.io), images and tool downloads from the official release pages. - A snapshot of all VMs after Day 0 saves you an evening if things go wrong. The book deliberately intervenes in the control plane and etcd, on Day 9 all the way to a restore.
Proxmox, VMware, a cloud or Multipass, it does not matter. On a Mac
with Apple Silicon, Multipass VMs are arm64. All downloads detect the
architecture themselves
(ARCH=$(dpkg --print-architecture)). The outputs in the
book come from amd64.
Versions
| Component | Start | Target |
|---|---|---|
| Kubernetes (kubeadm, kubelet, kubectl) | v1.35.10 | v1.36.6 → v1.37.2 |
| etcd (with kubeadm) | 3.6.6 | 3.6.8 → 3.7.0 |
| containerd | 2.2.1 (Ubuntu) | – |
| Cilium (Helm) | v1.19.11 | v1.20.5 (Day 8) |
| kube-vip | v1.3.2 | – |
| metrics-server | v0.8.1 | v0.9.1 (Day 8) |
| pluto / kubectl-convert | v5.24.5 / v1.35.10 | – (Day 4) |
| etcdctl / etcdutl | v3.6.6 | – (Day 5) |
| k3s | v1.35.10+k3s1 | v1.36.6+k3s1 → v1.37.2+k3s1 (Day 14) |
| system-upgrade-controller | v0.21.1 | – (Day 14) |
| Ubuntu kernel | 6.8.0-149 | 6.8.0-151 (Day 15) |
What you can do afterwards
- Take a cluster across several minor versions, with a plan, a way back and a measured result, and know in which order the control plane, kubelets and add-ons come up.
- Build workloads so that nobody notices drains and restarts:
readiness, PDB, spread,
preStop. - Find deprecated APIs before the upgrade and check add-ons against the compatibility matrix.
- Carry out a restore from an etcd snapshot when an upgrade goes wrong.
- Renew certificates before they expire, including those of the kubelet.
- Read, compact and defragment etcd, and create snapshots automatically.
- Replace a control plane node together with its etcd member.
- Base capacity on requests instead of feelings, and remove legacy leftovers.
- Roll out upgrades declaratively with the system-upgrade-controller.
- Write a runbook that someone else can work through at three in the morning.
What was tested
All commands and outputs come from real runs on the described training ground in November 2026, shortened where it makes sense. Where something in the lab went differently than planned, the book says so, together with the cause as far as it could be proven. Pod names, hashes, IDs, IPs and times will differ for you.
Note: This course is an independent practice course. Kubernetes is a trademark of the Linux Foundation. Cilium, etcd and CoreDNS are projects of the Cloud Native Computing Foundation (CNCF). k3s and the system-upgrade-controller are projects of SUSE/Rancher; kube-vip and pluto (Fairwinds) are independent open source projects. The book is not affiliated with these organizations and projects and is neither reviewed nor endorsed by them.
Join tokens and certificate keys in the book are shortened or stored only in files. In production, such values belong in a password vault, never in a book or a shell history.
Enjoy the training camp.