Stage 1 · Liftoff: workloads
Problem: a booking Pod disappears. Who replaces it, and what does the replacement inherit?
Chapters
Builds on Ignition's ReplicaSets and Deployments.
- Services and readiness, briefly: a stable name in front of replaceable Pods, ready Pods only. The mechanism is Stage 2.
- Configuration and identity: ConfigMap, Secret, ServiceAccount; env versus files.
- Jobs and initialization: finite work, retries, ordering.
- Rollouts and rollback: change versions safely.
- Ephemeral state: what a Pod replacement loses.
Ready for the walkthrough when you can answer
- Labels vs
ownerReferences: which one makes a Pod "belong" to a ReplicaSet? - Replacement Pod: new name? new IP? same Service address?
- Why is seed work a Job and not a Deployment?
- Rollback restores what? What can it not undo?
- A container restarts, then later its Pod is replaced: what does an
emptyDirkeep in each case? - You edit a ConfigMap. Which running Pods see it, and when?
Walkthrough
Flight deck: the tools you'll use from here on
After the walkthrough, and before you tear Stage 1 down, learn the instruments. Same running airline, same checks, four ways:
- kubectl: zero to hero: how kubectl talks to the API, discovering types and fields, selectors, JSONPath, watching, logs, previewing changes.
- Contexts and a second cluster: a small side kind cluster, kubeconfig contexts, and habits that stop a command landing on the wrong cluster.
- k9s: every Ignition and Stage 1 check in a terminal UI.
- Headlamp: the same checks in a graphical UI, with a map of how the objects connect.