kdrill

K-8 cordless cluster drill

kdrill.5xx.tech

Breaks Kubernetes on your laptop, on purpose.

168 lessons: broken clusters to fix with your own kubectl, and a language model to build from zero. Free and open source. Runs on your laptop: no cloud account, no GPU, no bill.

168bits
included

Shown larger than actual size. Battery is your laptop's RAM.

The cluster is the exam

Every lesson is a small cluster that is broken or unfinished, plus a goal. You fix it with your own kubectl. Nothing is multiple choice: kdrill verify checks the cluster and says exactly what is still wrong.

Recorded terminal session. kdrill verify passes five checks and fails one: all 3 replicas Running and ready, expected 3, got 2, with a hint to describe the Pending pod. After the fix, all six checks pass and verify exits 0.

Real kdrill verify output from k8s-scheduling/01, before and after the fix.

What's in the box

One lesson, taken apart. Parts are not sold separately.

Exploded view of one kdrill lesson: a broken cluster, a goal tag, a kubectl key, a verify gauge, three hint cards and a reset button. Goal3/3 replicas Runningon the 2 existing nodeseach still asks 1 CPU k 0exit code 123 123456
  1. A broken clusterA small k3d cluster, broken or unfinished on purpose. One pod is Pending and nobody has said why.
  2. A goalWhat done looks like, in one sentence: all 3 replicas Running, on the 2 existing nodes, each pod still requesting 1 CPU.
  3. Your own kubectlNot included. You already have one, and probably an alias for it.
  4. kdrill verifyChecks the real cluster and tells you exactly what is still wrong. Exits 0 when you are done.
  5. Progressive hintskdrill hint gives a little more away each time. kdrill solution has the reference answer.
  6. A reset buttonkdrill reset puts the lesson back the way it started. Break it as often as you like.

The bit set

Nine courses, 168 lessons. The more lessons, the bigger the bit. Press one to lift it out of the case.

fine-tuningnot in this box yet
kubeflownot in this box yet

Press a bit to see its lessons.

Specifications

Power sourceYour laptop
Memory8 GB (give Docker 4)
ClusterOne k3d (k3s) cluster called kdrill
Cloud bill$0.00
GPUs required0 (simulated: as many as you like)
Fake nodesKWOK. Dozens of “H100 nodes” cost a few MB of RAM
Real trafficReal containers for the Envoy and Istio courses
Real modelSmolLM2-135M on llama.cpp, CPU only, about 57 tokens/s
Training runA 354k-parameter GPT in PyTorch, 1 to 3 minutes
Cluster requiredNot for llm-from-zero: plain Python in a container
GradientsWritten by hand, before PyTorch does it for you
Lessons168
Courses9, 2 more planned
PagerNot included
VerifyExits 0 when you are done
  • No cloud account
  • Fits in 8 GB
  • Your own kubectl

Caution

Will break your cluster. kdrill reset puts it back.

Do not point at production.

Requires Docker (Docker Desktop, OrbStack or Colima), k3d, kubectl, Go and helm. Sold separately, for free.

Instructions for use

Quick start

  1. git clone https://github.com/mousavian/kdrill
  2. cd kdrill && make build
  3. bin/kdrill doctorChecks docker, memory, k3d, kubectl.
  4. bin/kdrill cluster upOne k3d cluster called “kdrill”.
  5. bin/kdrill start k8s-scheduling/01Your first broken cluster.

Before you start

  • Docker (Docker Desktop, OrbStack or Colima), k3d, kubectl, Go and helm.
  • Give Docker about 4 GB of memory. The whole lab fits on an 8 GB laptop.
  • No cloud account, no cloud bill, no GPU.

Every lesson

kubectl get pods
Look around. Something is Pending.
kdrill verify
What is still wrong, line by line.
kdrill hint
A little more help each time.
kdrill solution
The reference answer.
kdrill reset
Start the lesson over.
kdrill next
Clean up and start the next lesson.