Interview Prep/Kubernetes/Pods & Workloads

How do StatefulSet PVC retention (`persistentVolumeClaimRetentionPolicy`) and `minReadySeconds` change behavior?

AdvancedConceptPods & Workloads
Answer

By default PVCs from volumeClaimTemplates are kept on scale-down and delete (Retain). Setting whenDeleted and whenScaled to Delete (GA 1.32) removes them automatically, which is convenient for caches but risky for databases. minReadySeconds makes a Pod count as available only after being Ready that long, slowing rollouts safely.

All Kubernetes questions Roadmap: Kubernetes core

More on Pods & Workloads