Interview Prep/Kubernetes/Pods & Workloads

How do StatefulSet updates work (`RollingUpdate` with `partition`)?

IntermediateConceptPods & Workloads
Answer

Pods are updated in reverse ordinal order, one at a time, waiting for each to be Ready. rollingUpdate.partition: N updates only Pods with ordinal >= N, which lets you canary on db-2 and then lower the partition. OnDelete updates a Pod only when you delete it yourself.

All Kubernetes questions Roadmap: Kubernetes core

More on Pods & Workloads