Cheat sheets
Workload objects
Pod, ReplicaSet, Deployment, StatefulSet, DaemonSet, Job and CronJob compared in one table.
| Object | Use for | Key behaviour |
|---|---|---|
| Pod | The smallest deployable unit: one or more containers sharing network and storage | Not recreated if it dies on its own |
| ReplicaSet | Keep N identical Pods running | Usually created by a Deployment |
| Deployment | Stateless apps | Rolling updates, rollback, scaling, manages ReplicaSets |
| StatefulSet | Databases and ordered clusters | Stable names (name-0, name-1), stable storage, ordered start |
| DaemonSet | Node agents such as log collectors | One Pod on every matching node |
| Job | One-off tasks | Runs until the required number of Pods succeed |
| CronJob | Scheduled tasks | Creates a Job on a cron schedule |
Deployment vs StatefulSet
Both can keep several replicas running. If the stem mentions stable identity, per-Pod storage or ordered start-up, it wants a StatefulSet. Interchangeable stateless replicas want a Deployment.