Stage 4, Part 9 of 9 · p. 37, Workloads & Lifecycle Deep Dive

Summary Cheat Sheet

ConceptKey Takeaway
DeploymentStateless, rolling updates, ReplicaSets
StatefulSetStable identity, per-Pod storage, ordered
DaemonSetOne Pod per node
JobRuns to completion
CronJobScheduled Jobs
Pod PhasesPending → Running → Succeeded/Failed
Container StatesWaiting → Running → Terminated
Startup ProbeSlow start; disables other probes
Liveness ProbeRestart on failure
Readiness ProbeRemove from service on failure
Init ContainersSequential setup
Native SidecarInit container with restartPolicy: Always
Ephemeral ContainerDebug without restart
PostStartRuns after container starts
PreStopRuns before SIGTERM
Graceful ShutdownpreStop + SIGTERM + grace period
terminationGracePeriodSecondsWait before SIGKILL (default 30)
PDBLimits voluntary disruptions
QoSGuaranteed > Burstable > BestEffort
PriorityClassScheduling and preemption priority

1:1 copy of the class Google Doc, code in code blocks.