Preface
Most people who work with Kubernetes every day use a fraction of its
tools. kubectl get pods, kubectl logs,
kubectl describe, and when that is not enough, a search
engine. Yet for almost every recurring question there is a tool that
answers it in seconds: Who is actually allowed to read Secrets here? Why
is the Pod gone, and what was in its last log? Which policy drops this
connection? What does this Helm upgrade really change? Which containers
run without limits?
This course is sorted by problems, not by tools. Each day starts with a question from everyday operations and ends with the tool that answers it fastest, tried out on a small shop with built-in weaknesses, the Werkzeugladen (tool shop). On the first day, you build it. On the following days, you find its weaknesses, one after another, with kubectl, Krew plugins, k9s, Headlamp, stern, kubectl debug, netshoot, Hubble, Popeye, Pluto, Goldilocks, kubeconform, kube-linter, kube-score, Polaris, Trivy, kube-bench, Kubescape, rbac-tool, helm-diff, Argo CD, Flux, kind, k3d and ctlptl. On the second-to-last day, you write your own kubectl plugin in Go.
The honesty rule. Every output in the book comes from a real run. Where a tool behaved differently than its documentation says, where it overlooked something or reported it wrongly, the text says so: a linter that skips broken files with exit 0, a checking tool that reports “0 SCANNED, 100 %”, a file audit that considers a built-in role dangerous. Tools are good, but not infallible. Knowing where they are wrong is part of it. Where a tool is no longer maintained (the Kubernetes Dashboard is archived, Popeye and rbac-tool are dormant), the book says so.
The book is aimed at Kubernetes users and admins who know kubectl and want to work faster, more securely and with the right tools. You should be confident with Pods, Deployments, Services, RBAC and Helm. Go skills help on Day 14 but are not required: the code is shown in full.
Scope. Many tools have their own courses that go deeper: troubleshooting in “Debugging Kubernetes hands-on”, Helm in “Helm Charts hands-on”, security in “CKS hands-on” and “Kubernetes attack and defense hands-on”, networking in “Cilium hands-on”. This course is about the tool itself, the hands-on moves, and the question of when to use which one.
How the Book Works
- One day, one problem area. Each day has a goal, a time estimate, a short briefing and 4 to 7 drills. You type every command yourself and compare with “Expected”.
- Failures are part of the program. A checkout that crashes, a Service without Pods, a policy that drops traffic, an account with too many permissions: every fault is triggered on purpose, and you find it with the tool of the day. Where something went wrong during testing, the book says so as Happened during testing or Observed, including the cause.
- No helper scripts. Every manifest is written out as a heredoc, every command on its own. Tools are installed in a fixed version and, where the project offers it, with a verified checksum or signature.
- Exercise, challenge, checkpoint, interview and enterprise notes close every day. The challenge is a task without instructions, with a solution.
At the end:
- Competition (Day 15): the referee sabotages the shop five times, plus a challenge, against the clock.
- Appendix A is the cheat sheet, Appendix B the final exam, Appendix C the Tool Finder: “My problem → which tool”, with profiles.
The Days at a Glance
| Day | Topic | Duration |
|---|---|---|
| Part A · kubectl and the Command Line | ||
| 0 | The Training Ground: kind, Cilium, the Werkzeugladen | approx. 60 min |
| 1 | kubectl for Advanced Users: explain, JSONPath, jq, events, wait | approx. 75 min |
| 2 | Changes Without Surprises: diff, dry run, Server-Side Apply, patch, Kustomize, permissions | approx. 75 min |
| 3 | Many Clusters, Many Namespaces: kubectx, kubens, kubie, kube-ps1 | approx. 60 min |
| 4 | Krew and Plugins: tree, neat, view-secret, who-can, access-matrix, resource-capacity | approx. 75 min |
| Part B · User Interfaces and Troubleshooting | ||
| 5 | k9s | approx. 75 min |
| 6 | Graphical User Interfaces: Headlamp, Freelens, the archived Dashboard | approx. 70 min |
| 7 | Logs and Debugging: stern, kubectl debug | approx. 80 min |
| 8 | Examining the Network: netshoot, tcpdump, Hubble | approx. 80 min |
| Part C · Checking and Securing | ||
| 9 | Cluster Hygiene: Popeye, Pluto, kube-capacity, Goldilocks | approx. 80 min |
| 10 | Checking Manifests: kubeconform, kube-linter, kube-score, Polaris | approx. 85 min |
| 11 | Checking Security: Trivy, kube-bench, Kubescape, rbac-tool | approx. 90 min |
| 12 | Helm and GitOps CLIs: helm-diff, Argo CD, Flux | approx. 85 min |
| Part D · Operations and Your Own Tools | ||
| 13 | Building and Throwing Away Clusters: kind, k3d, ctlptl, profiles | approx. 70 min |
| 14 | Your Own kubectl Plugins in Go | approx. 90 min |
| 15 | Competition: the Sabotaged Shop | approx. 90 min |
Time: Days 0 to 14 add up to a good 19 hours (1150 minutes); the competition and the final exam add one and a half and two hours, for a total of just under 23 hours. With one training day per evening and five evenings per week, you are through in three weeks.
The Training Ground
| VM | Role | In the lab |
|---|---|---|
| Lab VM | Docker and the kind cluster werkzeuge (tools) with
three nodes |
Ubuntu 24.04, 4 vCPU, 8 GB RAM |
| Node | Role |
|---|---|
werkzeuge-control-plane |
control plane |
werkzeuge-worker, werkzeuge-worker2 |
workers for the Werkzeugladen |
- A VM with Ubuntu 24.04, Docker and internet access. 8 GB RAM is enough: at the end of the course, with Headlamp, Hubble, metrics-server, Goldilocks and everything else, the lab VM used 3.8 GiB. The throwaway clusters on Day 13 and Argo CD on Day 12 temporarily need a bit more; both are torn down again right away.
- Plan for 30 GB of free disk space; in the lab, 28 GB of the disk were used at the end, operating system included.
- Proxmox, VMware or a cloud VM, it does not matter. The outputs in
the book come from amd64; all installations pick the architecture
themselves (
dpkg --print-architecture). - On Days 6 and 8, you open UIs in the browser on your machine. The port forwards for this listen on all addresses of the VM; on a network you do not control, use an SSH tunnel instead.
Versions
| Component | Version | Day |
|---|---|---|
| kind / Kubernetes / Helm / Cilium | v0.33.0 / v1.37.0 / v4.3.2 / 1.20.5 | 0 |
| kubectx, kubens / kubie / kube-ps1 | v0.11.0 / v0.28.0 / v1.0.0 | 3 |
| Krew | v0.5.0 | 4 |
| k9s | v0.51.0 | 5 |
| Headlamp / Freelens | v0.46.0 / v2.1.0 | 6 |
| stern | v1.35.0 | 7 |
| netshoot / hubble | v0.17 / v1.20.4 | 8 |
| Popeye / Pluto / metrics-server / VPA / Goldilocks | v0.22.1 / v5.24.5 / 0.9.0 / 1.7.1 / v4.16.3 | 9 |
| kubeconform / kube-linter / kube-score / Polaris | v0.8.0 / v0.8.3 / v1.20.0 / v10.2.6 | 10 |
| Trivy / kube-bench / Kubescape / rbac-tool | v0.76.2 / v0.16.0 / v4.0.21 / v1.20.0 | 11 |
| helm-diff / Argo CD / Flux | v3.15.15 / v3.6.2 / v2.10.1 | 12 |
| k3d / ctlptl | v5.9.0 / v0.9.6 | 13 |
| Go / client-go and cli-runtime | 1.27.4 / v0.37.2 | 14 |
What You Can Do Afterwards
- Query and change things precisely with kubectl: JSONPath,
custom-columns, jq, field selectors,
diff, Server-Side Apply, patches, impersonation. - Switch between clusters and namespaces without landing in the wrong cluster.
- Extend kubectl with Krew, and use k9s and Headlamp so that they have only the permissions they need.
- Follow the logs of many Pods, examine crashed containers, and open
containers without a shell with
kubectl debug. - Classify network errors: name, address, port, permission, with netshoot, tcpdump and Hubble.
- Check a cluster for hygiene, deprecated APIs, utilization and sensible requests.
- Check manifests before rolling them out, and set exceptions with a justification.
- Scan images, nodes, workloads and permissions for security problems, and close a gap.
- Preview Helm upgrades and operate Argo CD and Flux from the command line.
- Build throwaway clusters including a registry in a minute, and write your own kubectl plugin in Go.
What Was Tested
All commands and outputs come from real runs on the described setup, in November 2026, shortened where it makes sense. Pod names, IPs, times and vulnerability counts will differ for you: the scanners’ databases grow daily. Freelens was not photographed in the lab because it runs on your own machine; Day 6 says so.
Note: This course is an independent practice course. Kubernetes is a trademark of the Linux Foundation. The tools in this book are projects of their respective authors and organizations. The book is not affiliated with them and is neither reviewed nor endorsed by them.
The passwords and tokens in the book (lab-geheim-123 and
the ServiceAccount tokens) apply to the lab only.
Enjoy the drills.