Hands-on labs
Lessons show how things work. Labs make you fix them. Each lab sets up something broken on purpose, and your job is to find out why and fix it, the same way you would at work.
How labs work
- Create the lab cluster once with Build a Lab Cluster on Your Laptop. Every lab runs on that kind cluster.
- Run the Setup block. It creates a namespace
lab-NN(for examplelab-06) and the broken resources in it. - Read the Symptoms, then Investigate. The Investigate commands show you where to look but not the answer.
- Try before you open a hint. Hints go from gentle to almost the answer. Open the Solution last, and compare it with what you found.
- Verify and clean up. Deleting the namespace removes everything the lab made. Lab 10 also tells you how to remove the controller it installs.
Labs
| Lab | What is broken |
|---|---|
| Lab 01 · A Pod that never schedules | A Pod never gets a node. Read the scheduler's events. |
| Lab 02 · A container that will not stay up | A container starts and exits again and again. Read the previous logs. |
| Lab 03 · An image that never arrives | The kubelet cannot pull the image. Check name, tag and registry. |
| Lab 04 · A Service that answers nobody | A Service exists but sends traffic nowhere. Compare its selector with Pod labels. |
| Lab 05 · Running, but never ready | Pods run but never become Ready, so they get no traffic. |
| Lab 06 · OOMKilled | A container is killed for using more memory than its limit. |
| Lab 07 · DNS blocked by NetworkPolicy | A NetworkPolicy blocks DNS, so a Service works by IP but not by name. |
| Lab 08 · RBAC Forbidden | A Pod's ServiceAccount gets 403 when it calls the API. |
| Lab 09 · PVC stuck in Pending | Two claims are Pending: one is broken, one is just waiting. |
| Lab 10 · Route does nothing or returns 404 | HTTP routing into the cluster does nothing, then returns 404 and 500. |