Use it to choose the right workload type or when pods of a workload are not as expected.
Kubernetes Workloads
Kubernetes workloads are controllers that manage pods: Deployments (stateless, rolling updates), StatefulSets (stable identity and storage), DaemonSets (one pod per node), Jobs and CronJobs (run to completion).
1. kubectl get deploy,sts,ds,job -n <ns> — desired vs ready.
2. kubectl describe <kind> <name> — events.
3. Pods of the workload: kubectl get pods -l <selector>.
4. Rollout: kubectl rollout status deploy/<name>.
5. Fix pod problems (image, probes, resources).
workload spec → controller creates ReplicaSets/pods → scheduler → running → status updated
Common errors include editing controller-owned Pods directly, using Deployment semantics for stateful identity, confusing readiness with rollout completion, blocked rollouts caused by probes/resources, and CronJob concurrency/history behavior that creates unexpected overlap. Preserve the first divergent observation and repeat the same bounded verification after remediation.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
Containers owns Kubernetes workload-controller semantics. The application remains responsible for its own data/state model; Storage owns backing durability and Automation owns deployment pipelines.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification workflow Verify boundary
Identify the responsible controller before changing a Pod. Compare desired replicas/template/revision with current Pods, conditions and events, inspect rollout history where supported, and verify the application behavior after convergence. For Jobs, verify completion semantics rather than only Pod exit state.
Step 2 Failure signatures and limits Narrow the fault
Common errors include editing controller-owned Pods directly, using Deployment semantics for stateful identity, confusing readiness with rollout completion, blocked rollouts caused by probes/resources, and CronJob concurrency/history behavior that creates unexpected overlap.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
Subtopics
Go one level deeper into this subject.
A Deployment manages ReplicaSets to roll out new Pod templates gradually and keep the desired number of replicas running.
Subtopic StatefulSetsA StatefulSet runs Pods with stable names, stable network identities and one PersistentVolumeClaim per Pod, started and stopped in order.
Subtopic DaemonSetsA DaemonSet runs one copy of a Pod on every node (or a selected set of nodes), typically for agents such as log shippers, CNI and monitoring.
Subtopic Jobs and CronJobsA Job runs Pods until a set number finish successfully; a CronJob creates Jobs on a schedule.
Do not create bare pods for services — use a controller so they are recreated. Check the controller's status (replicas, updated, available) and its events.
kubectl get deploy,sts,ds,job -n <ns>— first check for this topickubectl get pods -o wide— pods, status, node, IPkubectl describe pod <pod>— events and conditionskubectl logs <pod> [-c <c>] [--previous]— container logs (incl. previous crash)kubectl get events --sort-by=.lastTimestamp— recent cluster events
ReferenceWhat it is1 section · depth on demand
Operating model
Kubernetes Workloads covers the controllers and objects that define how application processes should run. Pods are the scheduling/runtime unit; higher-level controllers add replication, rollout, stable identity, node-wide placement or bounded job semantics.
ReferenceHow it works1 section · depth on demand
In depth
Kubernetes workloads are the resource types that run applications. Each controller manages pods in a different way, so choosing the right one decides how the application scales, updates and recovers.
| Workload | Use |
|---|---|
| Deployment | Stateless apps; rolling updates and rollbacks |
| StatefulSet | Stable identities and per-pod storage (databases, clustered apps) |
| DaemonSet | One pod per node (agents, CNI, log collectors) |
| Job | Run to completion |
| CronJob | Scheduled jobs |
| Pod | Smallest unit; rarely created directly |
kubectl get deploy,sts,ds,job,cronjob -A
kubectl rollout status deploy/api -n apps
kubectl rollout undo deploy/api -n apps
kubectl scale deploy/api --replicas=5 -n apps
Pods are disposable: design applications so any pod can be replaced at any time, with state in volumes or external services, and readiness probes so traffic only reaches ready pods.
ReferenceImportant terms & boundaries1 section · depth on demand
Scope map
- Pod
- ReplicaSet
- Deployment
- StatefulSet
- DaemonSet
- Job and CronJob
- Rollout and rollback behavior
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Configuration & expected output
Concrete examples are shown only when the stored reference contains an actual configuration or output shape for this Topic.
Configuration example
Assumptions: Namespace exists. Replace image, port and probe path.
apiVersion: apps/v1
kind: Deployment
metadata:
name: api
spec:
replicas: 3
selector:
matchLabels: {app: api}
template:
metadata:
labels: {app: api}
spec:
containers:
- name: api
image: myorg/api:1.4.2
ports: [{containerPort: 8080}]
resources:
requests: {cpu: 100m, memory: 128Mi}
limits: {memory: 256Mi}
readinessProbe:
httpGet: {path: /healthz, port: 8080}
periodSeconds: 5Expected output
kubectl rollout status deployment/api && kubectl get deploy apiExpected state: The rollout completes and all replicas are ready and up to date.
deployment "api" successfully rolled out
NAME READY UP-TO-DATE AVAILABLE AGE
api 3/3 3 3 5mREADY 3/3 means every Pod passed its readiness probe; AVAILABLE counts Pods ready long enough for minReadySeconds. Illustrative authored output: field layout matches the tool, values will differ in your environment.Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Documentation verification: confirms the upstream model used by the Topic. It does not assert local production behavior.
Basis: https://kubernetes.io/docs/concepts/workloads/ · confidence 92%What changed and what may be affected
Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.
Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Kubernetes Workloads verification boundary matrix
A compact lookup separating intent, owning component state, effective state and consumer-visible outcome for Kubernetes Workloads.
| Boundary | Inspect | Healthy interpretation | Do not infer |
|---|---|---|---|
| Intent | Pod | Intended object/scope is explicit and versioned where relevant | Intent is already effective |
| Owning runtime/control plane | ReplicaSet / Deployment | Owner accepts and reports the expected object state | Downstream dependencies are healthy |
| Effective state | StatefulSet | Independent read-back matches the intended state | Every client sees the same result |
| Consumer outcome | DaemonSet | The original bounded check succeeds in the same time window | Production correctness outside this scope |
Deep reference
Design & tradeoffs
Scope
Containers owns Kubernetes workload-controller semantics. The application remains responsible for its own data/state model; Storage owns backing durability and Automation owns deployment pipelines.