Skip to main content

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.

  1. Services and readiness, briefly: a stable name in front of replaceable Pods, ready Pods only. The mechanism is Stage 2.
  2. Configuration and identity: ConfigMap, Secret, ServiceAccount; env versus files.
  3. Jobs and initialization: finite work, retries, ordering.
  4. Rollouts and rollback: change versions safely.
  5. 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 emptyDir keep 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:

  1. kubectl: zero to hero: how kubectl talks to the API, discovering types and fields, selectors, JSONPath, watching, logs, previewing changes.
  2. Contexts and a second cluster: a small side kind cluster, kubeconfig contexts, and habits that stop a command landing on the wrong cluster.
  3. k9s: every Ignition and Stage 1 check in a terminal UI.
  4. Headlamp: the same checks in a graphical UI, with a map of how the objects connect.