Skip to Content
Asterrr's Handbook
Cheat sheets

Workload objects

Pod, ReplicaSet, Deployment, StatefulSet, DaemonSet, Job and CronJob compared in one table.

yesnoyesnoyesnoA workload to runRuns to completion?Job or CronJobOne Pod per node?DaemonSetStable identity or owndisk?StatefulSetDeployment
Pick the object from the shape of the job.
ObjectUse forKey behaviour
PodThe smallest deployable unit: one or more containers sharing network and storageNot recreated if it dies on its own
ReplicaSetKeep N identical Pods runningUsually created by a Deployment
DeploymentStateless appsRolling updates, rollback, scaling, manages ReplicaSets
StatefulSetDatabases and ordered clustersStable names (name-0, name-1), stable storage, ordered start
DaemonSetNode agents such as log collectorsOne Pod on every matching node
JobOne-off tasksRuns until the required number of Pods succeed
CronJobScheduled tasksCreates 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.

On this page