Workload controllers: StatefulSets, DaemonSets, Jobs and CronJobs

Deployment for stateless, StatefulSet for identity and storage, DaemonSet for per-node, Job and CronJob for work that ends. Choosing wrong shows up as an operational problem months later.

Read the briefing
About 9 min to read 7 drills

What to remember

  1. StatefulSet buys stable names and per-pod volumes. Ordered, predictable identity — and slower rollouts. Do not use it just because there is a database.
  2. DaemonSet means one per node, including new nodes. Agents, log shippers, CNI. It scales with the cluster, not with load.
  3. Jobs need backoffLimit and a deadline. Otherwise a broken job retries forever and quietly consumes the namespace's quota.
  4. CronJob concurrencyPolicy matters more than the schedule. Overlapping runs of a slow job is the classic surprise; Forbid or Replace deliberately.
  5. A Deployment owns ReplicaSets, which own pods. Rollbacks and failures live at the ReplicaSet level — which is where the FailedCreate events are.

The big picture

Workload controllers are Kubernetes' answer to "what kind of thing is this": interchangeable replicas (Deployment), replicas with identity and their own storage (StatefulSet), one per node (DaemonSet), or work that finishes (Job and CronJob). Interviewers use them to test whether you choose by the guarantee a workload needs rather than by habit, because the wrong choice fails later as data loss, silent under-coverage, or a batch that piles up on a slow dependency. The operational questions, stuck StatefulSet rollouts, missing DaemonSet pods, and CronJob overlap, all follow from each controller's contract.

The mental model

Ask what the pod is allowed to forget. A Deployment pod forgets everything: kill it and an identical stranger takes over. A StatefulSet pod forgets nothing: it keeps its name, its DNS, and its disk, so it can only move where the disk can. A DaemonSet pod belongs to a node, not to a count. A Job pod exists to finish, so a controller counts its exits instead of keeping it alive. Every knob on each controller (ordering, retention, tolerations, backoffLimit, concurrencyPolicy) is a refinement of that one property.

In depth

Choose by the guarantee, not the label

Each workload controller makes one promise, and you choose by writing down which promise the workload needs before touching YAML. A Deployment promises N interchangeable replicas of a template and rolls them without dropping below a bound; it assumes any pod can be killed and replaced and that no pod owns anything. A StatefulSet promises identity: each replica has a stable name, stable DNS, and its own PersistentVolumeClaim that survives the pod, plus ordered start, stop, and update. A DaemonSet promises one pod on every node that matches its selector, following nodes as they join and leave; it has no replica count. A Job promises that work runs to completion, retrying failures up to a limit and then stopping; a CronJob creates Jobs on a schedule.

The wrong choice does not fail at apply time. It fails later, as a data or scaling bug. Three Postgres replicas as a Deployment with one shared PVC is two processes writing one data directory the first time a node is drained; that is the interview's favourite example. A per-node agent as a Deployment with replicas: <node count> drifts the moment the cluster autoscaler adds a node. A migration as a Deployment restarts forever after it succeeds, because restartPolicy: Always is the only value a Deployment allows. A long-lived queue consumer as a Job either finishes and stops consuming or never completes and confuses every dashboard.

The decision questions are short. Does a replica own data or an identity another system depends on (a database, a validator, a Kafka broker)? StatefulSet. Must exactly one run per node because it observes or configures the node itself (log shipper, CNI, node exporter, CSI driver)? DaemonSet. Does it have a finite unit of work and an exit code that means done? Job, or CronJob if that unit recurs. Everything else, which is most services, is a Deployment.

StatefulSets: identity, storage, ordering, and updates

A StatefulSet with replicas: 3 creates redis-0, redis-1, redis-2 in that order, waiting for each to be Running and Ready before starting the next (podManagementPolicy: OrderedReady, the default; Parallel drops the ordering when the application does not need it). serviceName must point at a headless Service (clusterIP: None), which is what gives each pod a stable DNS name, redis-0.redis.<namespace>.svc.cluster.local, that resolves to whatever IP that ordinal currently has. Deleting redis-0 recreates a pod called redis-0, not a random suffix.

volumeClaimTemplates create one PVC per ordinal, named <template>-<statefulset>-<ordinal> (data-redis-0), and the pod for that ordinal always mounts that claim. The claim, once bound, is pinned to whatever the PersistentVolume is pinned to: a zonal disk means the pod can only schedule in that zone, and a local NVMe volume means the pod can only run on that one node. This is the mechanism behind pod has unbound immediate PersistentVolumeClaims or a Pending pod after a node is replaced: the pod is fine, the storage cannot follow it. Deleting the StatefulSet leaves the PVCs in place by default (persistentVolumeClaimRetentionPolicy with whenDeleted: Retain and whenScaled: Retain); Delete exists for caches where data loss is acceptable. Recreating the set with the same name reattaches the same claims.

Updates are the other surprise. updateStrategy: RollingUpdate replaces pods one at a time, from the highest ordinal down, waiting for each to be Ready, with no surge; a pod that never becomes Ready stalls every lower ordinal, so kubectl rollout status statefulset/redis is the thing to watch. rollingUpdate.partition: N updates only ordinals at or above N, which is how you canary a database: set partition to 2, verify redis-2, then lower it. Scale-down removes the highest ordinal first and refuses to proceed while any pod is unhealthy. Pair a StatefulSet with a PodDisruptionBudget and, for local storage, with a snapshot-based bootstrap so a replaced node does not mean hours of resync.

DaemonSets: one per node, and the taint trap

A DaemonSet has no replicas; its desired count is the number of nodes that match its nodeSelector or node affinity, and the controller creates or deletes pods as nodes join, leave, or change labels. Since the default scheduler places DaemonSet pods (each gets a node affinity for its target node), every normal filter still applies: taints in particular. A DaemonSet with no tolerations skips control-plane nodes and any dedicated pool, which is why kubectl get ds -A shows DESIRED lower than the node count and why monitoring quietly misses exactly the nodes you care most about. The controller does add tolerations for node.kubernetes.io/not-ready, unreachable, disk-pressure, memory-pressure, pid-pressure, and unschedulable automatically, so agents keep running on cordoned or pressured nodes; custom taints (dedicated=gpu:NoSchedule) need an explicit toleration, and node agents usually carry tolerations: [{ operator: Exists }].

Because a DaemonSet pod runs on every node, its resource requests are multiplied by the fleet and subtracted from every node's allocatable, so a careless requests.memory: 2Gi on a log shipper removes 2 GiB from every node in the cluster. Give agents modest, measured requests and a priorityClassName of system-node-critical or system-cluster-critical when the node cannot function without them (CNI, CSI, kube-proxy), so preemption and eviction favour them.

Rollouts use updateStrategy: RollingUpdate with maxUnavailable (default 1, so a 500-node fleet updates one node at a time unless you raise it or set maxSurge) or OnDelete for agents you want to roll by hand, node by node. Read kubectl get ds columns as a ledger: DESIRED against CURRENT tells you scheduling gaps, READY against UP-TO-DATE tells you rollout progress, and kubectl describe ds events name the node that could not be scheduled. kubectl drain skips DaemonSet pods only with --ignore-daemonsets, because evicting them would be pointless: the controller recreates them immediately.

Jobs: run to completion, retried, bounded

A Job creates pods and counts successes. completions is how many successful pod exits are needed (default 1), parallelism is how many pods may run at once (default 1), and the Job is Complete when the count is reached. Three shapes cover most work: a single pod, a fixed number of identical tasks (completions: 20, parallelism: 5), and indexed jobs (completionMode: Indexed) where each pod receives JOB_COMPLETION_INDEX and processes its own shard. A Job never restarts a pod that has succeeded, and it never changes a running pod's template; to change the image you delete and recreate the Job.

Failure handling has three knobs that people conflate. restartPolicy (only Never or OnFailure are allowed) decides whether the kubelet restarts a failed container in place. backoffLimit (default 6) caps how many pod failures, or in-place restarts, the controller tolerates before marking the Job Failed, with exponential backoff between attempts. activeDeadlineSeconds bounds the whole Job's wall-clock time regardless of retries; when it fires, active pods are killed and the Job fails with reason DeadlineExceeded, and it takes precedence over backoffLimit. A podFailurePolicy can treat specific exit codes as terminal (a configuration error should not burn six retries) or ignore failures caused by node disruption so preemption does not count against the limit.

Because retries are the normal path, the work itself must be idempotent or resumable; a migration that cannot run twice needs a lock or a marker, not a hope that the pod succeeds first time. Finished Jobs and their pods stay around until you delete them or ttlSecondsAfterFinished does, which is how namespaces fill with thousands of Completed pods. suspend: true pauses a Job (running pods are terminated) and is the clean way to stop a runaway batch without losing the object. Check kubectl get jobs for COMPLETIONS and DURATION, kubectl describe job for the failed-pod count and conditions, and the individual pods for exit codes.

CronJobs: schedules, overlap, and missed runs

A CronJob holds a jobTemplate and a schedule in standard five-field cron syntax, evaluated in the controller's time zone unless timeZone is set ("Etc/UTC" avoids daylight-saving surprises). At each tick the controller creates a Job named <cronjob>-<scheduled minute since epoch>, so report-29031505 was scheduled five minutes after report-29031500. The CronJob itself does not run anything; every question about a run is a question about the Job and its pods.

concurrencyPolicy decides what happens when a tick arrives while a previous Job is still active. Allow (the default) starts another one, which is how a slow dependency turns into a pile of Running Jobs that make the dependency slower. Forbid skips the new run, and Replace deletes the running Job and starts fresh. Neither Forbid nor Replace ends a hung run on its own; activeDeadlineSeconds in the jobTemplate does that, and the two together bound the blast radius of a stuck dependency.

Missed runs have their own rules. If the controller was down or a Forbid was in effect, a scheduled time may pass unstarted. startingDeadlineSeconds says how late a run may start and still count; past that it is recorded as missed. If a CronJob accumulates more than 100 missed schedules with no starting deadline set, the controller stops scheduling it and logs Cannot determine if job needs to be started. Too many missed start time (> 100). Set or decrease .spec.startingDeadlineSeconds or check clock skew, which is a real and silent production failure. successfulJobsHistoryLimit (3) and failedJobsHistoryLimit (1) prune old Jobs; suspend: true pauses scheduling without deleting anything.

Operationally: alert on the age of the last successful Job, not on individual failures, because a CronJob that never runs raises no failure. kubectl get cronjob shows LAST SCHEDULE and ACTIVE; kubectl create job --from=cronjob/report report-manual-1 runs the template once for a test. And design the payload to be idempotent, because Allow, retries, and clock skew all mean a run may happen twice.

Myths and facts

Myth: Deleting a StatefulSet deletes its PersistentVolumeClaims.

Fact: The default retention policy is Retain for both deletion and scale-down; the PVCs stay bound and reattach if the set is recreated with the same name. Only an explicit Delete policy removes them.

Myth: A StatefulSet pod can be rescheduled to any node because Kubernetes moves the volume with it.

Fact: The pod follows its claim, and the claim is pinned to the PersistentVolume's topology: a zone for zonal disks, a single node for local volumes. If that node is gone the pod stays Pending until the claim is rebuilt.

Myth: DaemonSets bypass the scheduler, so they run on every node no matter what.

Fact: They are placed by the scheduler with per-node affinity, and untolerated taints exclude them exactly as they exclude any other pod. Control-plane and dedicated pools are missed until the DaemonSet carries tolerations.

Myth: A Job with restartPolicy: Never runs its pod exactly once.

Fact: Never only stops the kubelet from restarting the container in place; the Job controller creates new pods for each failure until backoffLimit. Exactly-once needs the work itself to be idempotent.

Myth: Setting concurrencyPolicy: Forbid fixes a CronJob whose runs hang.

Fact: Forbid stops new runs from piling up, but the hung Job stays active forever and every later tick is skipped. activeDeadlineSeconds on the jobTemplate is what ends the hung run.

Myth: A StatefulSet rollout behaves like a Deployment rollout.

Fact: It updates one pod at a time from the highest ordinal down with no surge, and a pod that never becomes Ready blocks every lower ordinal. Partition exists to canary; there is no maxSurge, and maxUnavailable exists only behind the alpha MaxUnavailableStatefulSet feature gate, off by default.

How pros do it

  • Write the guarantee the workload needs in one sentence (interchangeable, identity plus storage, one per node, run to completion) before choosing the controller, and record it next to the manifest.
  • Give every StatefulSet a headless Service, an explicit persistentVolumeClaimRetentionPolicy, a PodDisruptionBudget, and for local or zonal storage a documented rebuild path (snapshots) before the first node maintenance.
  • Use rollingUpdate.partition to canary StatefulSet updates on the highest ordinal, and watch kubectl rollout status statefulset/<name> because one unready pod stalls the whole set.
  • Give node agents tolerations: [{ operator: Exists }] or targeted tolerations, small measured requests, and system-node-critical priority when the node cannot function without them; alert when a DaemonSet's DESIRED is below the node count.
  • Make Job payloads idempotent, and set backoffLimit, activeDeadlineSeconds, and ttlSecondsAfterFinished on every Job template; use a podFailurePolicy so configuration errors fail fast instead of burning retries.
  • Default CronJobs to concurrencyPolicy: Forbid with an activeDeadlineSeconds in the jobTemplate, set startingDeadlineSeconds, and alert on the age of the last successful run rather than on individual Job failures.

Questions people ask

Why does my DaemonSet have fewer pods than I have nodes?

Say 'taints, almost always': control-plane or dedicated nodes need tolerations. Then the evidence: compare kubectl get ds DESIRED with kubectl get nodes, then kubectl describe ds for the scheduling event naming the taint or the node selector that excluded them. Add that DaemonSets go through the normal scheduler, which is why taints apply.

I deleted pg-0 and it came back with the same name, but after a node failure it is Pending forever. Why the difference?

Explain the pinning: deleting the pod keeps the PVC, and the new pg-0 mounts it on the same node or zone. After the node is gone, a claim bound to local or zonal storage cannot be satisfied anywhere else, so the pod waits. Then name the evidence: kubectl describe pvc and the PV's node affinity. 'The pod follows its claim' is the sentence.

Do I lose data if I delete the StatefulSet to change an immutable field?

Say 'not by default': PVCs are retained and reattach when you recreate the set with the same name and volumeClaimTemplates. Then the technique: kubectl delete sts --cascade=orphan keeps the pods running through the recreate. And the rule: never set the retention policy to Delete on a database.

Forbid or Replace for my nightly report?

Answer with the criterion: Forbid if a running report must finish and a duplicate is harmless to skip; Replace if the newest run is the one that matters and killing the old one is safe, such as a sync that is idempotent from scratch. Then add, either way, activeDeadlineSeconds, because neither policy ends a hung run.

Why is my StatefulSet rollout stuck with only the highest ordinal updated?

Say updates go one pod at a time from the top and wait for Ready, so if that pod never becomes Ready nothing below it moves. Then the reassurance and the action: the older ordinals are still serving the old version, which is the safe failure, so fix or roll back the template. Mention partition as the canary tool.

Can I change the image of a Job that is already running?

Say no: the pod template of a Job is immutable. Delete the Job (its pods go with it) and create a new one; for a CronJob, edit the jobTemplate and the next tick uses it. Short and correct is the right answer here.

My CronJob stopped running and the log says 'Too many missed start time (> 100)'. What happened?

Say it was suspended, blocked by Forbid, or the controller was down for long enough that more than 100 schedules passed with no startingDeadlineSeconds set, so the controller gave up counting. Then the fix: set startingDeadlineSeconds (a few minutes) and recreate or unsuspend the CronJob. Add that you alert on the age of the last successful run, which catches this silent failure.

Further reading

Drills · 7

Answer in your head, or out loud, before you reveal. Mark each one: "Again" brings it back, "Got it" counts on your desk.

1 Answer out loud

Explain to a new graduate when you would use a Deployment, a StatefulSet, a DaemonSet, and a Job, with one concrete example each and the guarantee that makes it the right choice. Four to six sentences.

In short

A strong answer picks each controller by the guarantee it gives: interchangeable, identity plus storage, one per node, or run to completion.

What a strong answer does
  • mechanism: Each choice justified by the guarantee: interchangeability, identity+storage, one-per-node, run-to-completion; mentions what breaks with the wrong choice.
  • examples: Realistic infra examples (API, database/RPC node, log agent, migration) with a sentence on why.
  • communication: Plain language, parallel structure, audience-appropriate.
Why

Interviewers ask this at every level; the difference between a junior and a senior answer is whether the guarantee, not the label, drives the choice.

The common mistake

Saying 'StatefulSet for databases' as a rule. Operator-managed systems that handle their own membership and storage can be simpler as Deployments; the guarantee the workload needs is the criterion.

2 Pick the strongest answer

A team runs a three-node Postgres cluster on Kubernetes as a Deployment with a shared PVC and one Service. Node maintenance keeps corrupting data. What is the structural mistake?

  1. Databases should never run on Kubernetes. Plenty do; the controller choice, not the platform, is the problem here.
  2. Databases need per-replica identity and per-replica storage: a StatefulSet with volumeClaimTemplates and a headless Service, not a Deployment with one shared volume. A Deployment treats pods as interchangeable and lets two replicas mount the same volume; a StatefulSet gives each replica its own PVC and stable name.
  3. The Deployment needs more replicas so one is always healthy. More interchangeable pods sharing one volume makes the corruption more likely, not less.
  4. The PVC should use ReadWriteMany so all pods can write safely. Access mode is about mounting; two databases writing one data directory is unsafe regardless.
In short

A database needs a StatefulSet with a volume per replica and a headless Service, not a Deployment with one shared volume.

Why

Choosing the controller is choosing the guarantees. StatefulSets exist for exactly this: stable identity (pg-0, pg-1), storage that follows the identity, ordered startup, and a headless Service for per-pod DNS. Interviewers ask this to see whether you pick controllers by the guarantee the workload needs rather than by habit.

Read the docs

3 Pick the strongest answer

You run kubectl delete statefulset redis with the default persistentVolumeClaimRetentionPolicy. What happens to the PVCs its volumeClaimTemplates created: is the data gone?

  1. They are deleted with the pods, like emptyDir volumes. Only if the retention policy is set to Delete; by default PVCs outlive the StatefulSet.
  2. They are deleted only if the StorageClass has reclaimPolicy Delete. The StorageClass reclaim policy governs the PV after its PVC is deleted, not whether the PVC is deleted.
  3. They are retained; the pods go away but redis-data-redis-0, -1, -2 remain and are reattached if the StatefulSet is recreated with the same name. Retention is the default because data loss should require an explicit decision.
  4. They are converted to PersistentVolumes with reclaimPolicy Recycle. No such conversion exists; the PVCs simply stay bound.
In short

The PVCs are kept by default and reattach if the StatefulSet is recreated with the same name.

Why

Two different lifecycles: the StatefulSet's PVC retention policy decides whether PVCs are deleted when the set is deleted or scaled down; the StorageClass's reclaimPolicy decides what happens to the underlying volume after a PVC is deleted. Knowing both layers is what stops you from deleting production data during a routine recreate.

Read the docs

4 Read the output

The report normally takes two minutes. What is happening and which single change stops it from getting worse?

apiVersion: batch/v1
kind: CronJob
metadata:
  name: report
spec:
  schedule: "*/5 * * * *"
  concurrencyPolicy: Allow
  jobTemplate:
    spec:
      backoffLimit: 6
      template:
        spec:
          restartPolicy: OnFailure
          containers:
            - name: report
              image: registry.example.com/report:3.1
              command: ["/report", "--source", "db.internal"]

$ kubectl get jobs | head
NAME              STATUS    COMPLETIONS   DURATION   AGE
report-29031500   Running   0/1           41m        41m
report-29031505   Running   0/1           36m        36m
report-29031510   Running   0/1           31m        31m
report-29031515   Running   0/1           26m        26m
  1. The schedule is wrong; use 0 * * * *. A slower schedule delays the pile-up; it does not prevent overlap when a run hangs.
  2. restartPolicy should be Never so the pods stop. The pods have not exited; restartPolicy is irrelevant to a hung process.
  3. backoffLimit is too high; lower it to 1. backoffLimit counts failed pods; these pods are running, not failing.
  4. Each run is hanging (probably on db.internal) and Allow lets a new Job start every five minutes on top of the stuck ones. Set concurrencyPolicy: Forbid (and add activeDeadlineSeconds) so a stuck run cannot pile up. Forbid skips a run while the previous is active; activeDeadlineSeconds kills a hung Job. Together they bound the blast radius of a slow dependency.
In short

The runs are hanging and Allow lets new Jobs pile up, so set concurrencyPolicy Forbid and add activeDeadlineSeconds.

Why

CronJob overlap is a classic production incident: a dependency slows down, runs pile up, and the pile-up makes the dependency slower. concurrencyPolicy is the knob that decides whether runs may overlap, and activeDeadlineSeconds (or a process timeout) is the knob that ends a hung run. Interviewers listen for both, because Forbid alone leaves the first run hung forever.

Read the docs

5 Quick recall

Quick one: which CronJob setting stops a new run from starting while the previous one is still going?

In short

concurrencyPolicy: Forbid stops a new run from starting while the previous run is still active.

Accepted

concurrencyPolicy: Forbid · concurrencyPolicy Forbid · concurrencyPolicy

Why

concurrencyPolicy: Forbid skips the new run; Replace cancels the running one; Allow (the default) lets them overlap.

6 Find what's broken

The exporter only runs on some nodes and Prometheus misses control-plane metrics; the migration Job is rejected by the API server. Which two lines?

apiVersion: apps/v1
kind: DaemonSet
metadata:
  name: node-exporter
spec:
  selector:
    matchLabels: { app: node-exporter }
  template:
    metadata:
      labels: { app: node-exporter }
    spec:
      containers:
        - name: exporter
          image: prom/node-exporter:v1.8.0
          ports:
            - containerPort: 9100
              hostPort: 9100
---
apiVersion: batch/v1
kind: Job
metadata:
  name: migrate-db
spec:
  completions: 1
  parallelism: 3
  template:
    spec:
      restartPolicy: Always
      containers:
        - name: migrate
          image: registry.example.com/migrate:2.0
In short

The DaemonSet has no tolerations for tainted nodes, and a Job may not use restartPolicy Always.

What's broken
  • Line 11: No tolerations: the DaemonSet pods cannot land on tainted nodes (control plane, dedicated pools), so the 'one per node' promise is broken where it matters most.
  • Line 28: Jobs only allow restartPolicy OnFailure or Never; Always is rejected because a Job must be able to finish.
Why

Two controller-specific rules. DaemonSets follow the scheduler's rules, so taints exclude them unless tolerated, which is why node agents almost always carry a broad toleration. Jobs are run-to-completion, so a pod that would restart forever contradicts the controller's contract and the API rejects it at admission. parallelism 3 with completions 1 (lines 24–25) merely runs one pod; it is odd, not invalid.

Read the docs

7 Scenario: what do you do next?

A StatefulSet of three Solana RPC nodes (rpc-0..2, each with a 2 TiB NVMe-backed PVC for the ledger) is being upgraded to a new client version. After the rolling update, rpc-1 is stuck Pending with pod has unbound immediate PersistentVolumeClaims; rpc-0 and rpc-2 are healthy but the RPC fleet is now under capacity and slot lag alerts are firing.

Step 1. First move?

  1. Delete the PVC so the StatefulSet recreates it. That destroys 2 TiB of ledger that takes hours to re-sync; never delete state to fix scheduling.
  2. Check the PVC and its PV: kubectl describe pvc ledger-rpc-1 and the node it was bound to. A StatefulSet's PVC is pinned to a zone/node; if that node is gone, the pod cannot schedule. The event names storage; local or zonal volumes explain a Pending pod after a node change. Read before acting.
  3. Roll back the client version. The pod is not running the new version at all; the block is storage placement.
  4. Scale the StatefulSet to 4 to restore capacity. rpc-3 would need a fresh ledger sync and does nothing for the stuck rpc-1; capacity returns only when a synced node serves.

Step 2. The PV is a local NVMe volume on a node that was replaced during the upgrade; the disk is gone. What is the mitigation?

  1. Accept the data loss for that replica only: delete the orphaned PVC/PV for rpc-1, let the StatefulSet recreate it on a healthy node, and restore from the latest snapshot to cut sync time; keep serving from rpc-0/2 and shed load via the RPC load balancer's health check on slot lag. The data is already gone; the fast path back is a snapshot-based rebuild while protecting clients from the lagging replica.
  2. Force-schedule rpc-1 onto another node with the same PVC. A local volume cannot follow the pod; the PV points at hardware that no longer exists.
  3. Convert the StatefulSet to a Deployment so pods are not pinned. RPC nodes need their own ledger disks; a Deployment would share or lose them.
  4. Wait for the node to come back. The node was replaced; the disk will not return.

Step 3. For the postmortem, what prevents this next time?

  1. Surge upgrades that add a node before removing one, a PDB of minAvailable 2 on the RPC set, snapshot-based bootstrap automation, and a pre-upgrade check that local-volume pods have a rebuild plan. Mechanisms at every layer: capacity during upgrades, a guardrail on voluntary disruption, and a fast rebuild path for the case that still happens.
  2. Tell operators to check PVCs before upgrades. A reminder, not a mechanism.
  3. Stop upgrading RPC nodes. Client upgrades are mandatory on a live chain; not upgrading is the bigger risk.
In short

Check the PVC and its volume first, rebuild only the lost replica from a snapshot, and use surge upgrades and a PDB next time.

Why

Local storage makes StatefulSet pods immobile: the PVC binds the replica to hardware. That is the right tradeoff for ledger-sized NVMe workloads, but it means upgrades must be planned around it (surge, PDBs, snapshot bootstrap). The interview signal is refusing to delete state until you have confirmed it is already gone.

Read the docs

Next lesson Debugging workloads: events, exit codes, and the first three minutes
Drill · Workload controllers
0:00

Loading…