Learning-first reset (November 2026): The original goal was to pass CKA, not build the most elaborate VM factory. Eight missions, a tutor and infrastructure automation already exist, but they have not been verified through repeated personal learning sessions. Start with a read-only preview, then validate one disposable live mission before expanding anything. See the scope reset and the standalone Linear project.
Break Kubernetes on purpose.
Fix it under pressure.
Level up until the exam feels boring.
CKA Lab is a practical-first Kubernetes training system. The pinned
proxmox-lab infrastructure companion
builds a disposable two-node kubeadm cluster; eight break/fix missions inject
faults, validate the live Kubernetes API, and award local XP. An optional AI
tutor, Pod-Professor, coaches without revealing the answer immediately.
Kubernetes · Proxmox · Terraform · Ansible · kubeadm · Python · Bash
This is an operator-owned lab, not a hosted sandbox. You need a Linux workstation, Proxmox VE, a cloud-init template, an isolated bridge, and a scoped API token. The current backend is deliberately opinionated.
Try this first without touching Proxmox or Kubernetes:
git clone --recurse-submodules https://github.com/ffworker/cka-lab.git
cd cka-lab
make previewThis only prints one proposed mission and its success criteria. It does not inject a fault, run kubectl or start a VM. Do not run make lab-up until you have reviewed the isolated disposable target.
For a real lab session, complete the Proxmox setup guide, including the Cloud-Init template, isolated bridge, scoped API token, pinned infrastructure submodule, and ignored local input files. Then:
git clone --recurse-submodules https://github.com/ffworker/cka-lab.git
cd cka-lab
make requirements
# Configure the generated local Proxmox inputs and token file first.
make lab-up
make mission
make validateThe guide also documents the fixed factory boundaries and safe teardown checks.
Optional tutor:
hermes profile install ./agents/pod-professor/hermes --alias
pod-professor chat
# Say: Start a missionflowchart LR
subgraph F["Disposable lab factory"]
T["Terraform<br/>VM lifecycle"] --> P["Proxmox VE<br/>two guests"]
P --> A["Ansible<br/>OS + Kubernetes"]
A --> K["kubeadm cluster<br/>control plane + worker"]
end
L["Learner"] --> R["Trainer CLI"]
Q["Pod-Professor<br/>optional tutor"] --> R
R --> I["Mission injector"]
I --> K
K --> V["Live-state validator"]
V --> S["Local XP, rank<br/>and next mission"]
S --> R
| Engineering decision | Implementation |
|---|---|
| Disposable infrastructure | The pinned proxmox-lab scenario owns exactly two factory guests; rebuild and teardown are normal operations. |
| Clear automation boundaries | Terraform owns VM lifecycle. Ansible owns containerd, kubeadm, Flannel, and node configuration. |
| Validation over checklists | Missions pass only when validators observe the required state through Kubernetes. |
| State discipline | The neutral tracked default is the fallback; an ignored .cka-factory/learner-state.json drives personalized eligibility when present, while progress stays local. |
| Fail-closed teardown | Destruction is refused unless Terraform state and live Proxmox ownership metadata agree on the exact two-VM boundary. |
| Practical tutor design | Pod-Professor uses the trainer loop, gives progressive hints, and does not own or repair the hypervisor. |
| Testable tooling | GitHub Actions runs the trainer pytest suite and validates tracked JSON and shell syntax on pushes and pull requests. |
| Mission | Pressure point |
|---|---|
| The Replica Trail | Deployment → ReplicaSet → Pods |
| Endpoints Were Inside You All Along | Service selectors and EndpointSlices |
| The Placement–Runtime Divide | Scheduler versus kubelet symptoms |
| Two Doors, One Backend | ClusterIP and NodePort repair |
| Release the Kraken, Then Roll It Back | Rolling updates and rollback |
| The Dedicated Node | Taints and tolerations |
| Configuration Has Left the Container | ConfigMap, Secret, and environment injection |
| Four Pods, No More, No Less | Manual scaling and replica convergence |
Each scenario owns metadata, an injector, a live-state validator, a reset script,
two progressive hints, and an explicit solution. Browse the
scenarios/ catalogue.
| Command | Result |
|---|---|
make preview |
Show the next mission locally without provisioning, injecting or writing learner state. |
make lab-up |
Explicitly provision the disposable two-node lab after safety review. |
make status |
Show factory, cluster, scenario, and local study state. |
make mission |
Select and inject a mission, then start its timer. |
make validate |
Check live state and record an attempt. |
make hint |
Reveal the next of two hints. |
make solution |
Show the solution only when explicitly requested. |
make reset |
Restore the active mission safely. |
make profile |
Show local XP, rank, streaks, achievements, and history. |
make lab-down |
Destroy only the exact factory-owned VMs after ownership checks pass. |
- Implemented: delegated Proxmox factory, kubeadm bootstrap, Flannel, eight missions, validator code, local progression, and Pod-Professor adapter. A personal end-to-end live learning run is not yet demonstrated.
- Environment-bound: public installation requires adapting documented local inputs around the intentionally fixed safety boundaries.
- Learning-first mode: no new platform features until an isolated live mission has been attempted, repaired, validated and reset by the learner.
- Scope: original exam-style practice only—no leaked or proprietary exam questions.
The factory currently pins Kubernetes v1.37 and Flannel v0.28.8. No broader
compatibility matrix has been tested.
- Quick start
- Architecture and state boundaries
- Proxmox factory and teardown safety
- Training model
- Gamification
- Pod-Professor
- kubectl field reference
- Contributing and security reporting
The workstation needs Linux, Bash, Python 3, GNU Make, OpenSSH, Git, kubectl, Terraform, and Ansible. From the repository root, install/check the workstation tools and create the ignored local configuration templates with the bundled helper:
make requirements
make requirements-checkThe installer creates the proxmox-lab scenario's ignored terraform.tfvars and
.cka-factory/proxmox.env when they do not exist. Edit both files with your
local Proxmox values and token before running make lab-up.
The helper supports apt-get, dnf, pacman, and zypper. It only installs
local workstation packages. If Terraform or kubectl are not available from the
configured distribution repositories, it prints the official installation link
and exits without guessing at a third-party source. Hermes Agent >=0.21.0 is
optional and only needed for Pod-Professor; install it separately before the
hermes profile install command in the quick start.
You still need an operator-managed Proxmox VE foundation. The helper does not
create the Cloud-Init template, isolated bridge, pool, API token, or SSH
credentials. Infrastructure changes belong in
proxmox-lab; training changes belong
here.
This repository does not currently include a repository-wide license. Until one is selected, the source is publicly visible but not licensed for reuse, redistribution, or modification.