Pcornel
Browse topics
Options
Recent
Favorites
Containers · Technical reference

Kubernetes Workloads

Direct answer

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).

When to use this

Use it to choose the right workload type or when pods of a workload are not as expected.

First 30 seconds

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).

Operational verification

workload spec → controller creates ReplicaSets/pods → scheduler → running → status updated

Evidence · next step

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
Common mistakes
What not to infer

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.

Platform / version applicability
Docker / containerd / Podman / Kubernetes / OCI-compatible platforms
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformDocker / containerd / Podman / Kubernetes / OCI-compatible platforms · 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.
Scope / prerequisiteUse it to choose the right workload type or when pods of a workload are not as expected.
What next?3 suggested next steps
Child topics (this level)4
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

test · 1
Drill down

Subtopics

Go one level deeper into this subject.

Key points

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.

Key checks
  • kubectl get deploy,sts,ds,job -n <ns> — first check for this topic
  • kubectl get pods -o wide — pods, status, node, IP
  • kubectl describe pod <pod> — events and conditions
  • kubectl 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.

WorkloadUse
DeploymentStateless apps; rolling updates and rollbacks
StatefulSetStable identities and per-pod storage (databases, clustered apps)
DaemonSetOne pod per node (agents, CNI, log collectors)
JobRun to completion
CronJobScheduled jobs
PodSmallest 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
Technical examples

Configuration & expected output

Concrete examples are shown only when the stored reference contains an actual configuration or output shape for this Topic.

Configuration example

Kubernetes Kubernetes 1.28 or laterDeployment with replicas, resource requests and a readiness probe.

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: 5

Expected output

Kubernetes Kubernetes 1.28 or laterkubectl rollout status deployment/api && kubectl get deploy api

Expected 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           5m
READY 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.
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-29 · otherOCI / Docker / containerd / Kubernetes Kubernetes current documentation

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%
Technical changelog & impact

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.

Related reference impactReview these references after material technical changes when their shared boundary is affected.
Terminology layer

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.

Aliases that resolve here
kubernetes workloadsKubernetes workloadDeployment StatefulSet DaemonSetKubernetes rollout
Embedded reference data

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.

BoundaryInspectHealthy interpretationDo not infer
IntentPodIntended object/scope is explicit and versioned where relevantIntent is already effective
Owning runtime/control planeReplicaSet / DeploymentOwner accepts and reports the expected object stateDownstream dependencies are healthy
Effective stateStatefulSetIndependent read-back matches the intended stateEvery client sees the same result
Consumer outcomeDaemonSetThe original bounded check succeeds in the same time windowProduction correctness outside this scope
Depth when you need it

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.

Confirmation

Confirm action

Continue?