Recreate strategy vs rolling: when is downtime acceptable?
BeginnerScenarioDeployment Strategies and GitOps
Answer
Situation read → Some workloads cannot run two versions.
What I'd do →
- Use
strategy: Recreatefor apps with an exclusive resource lock (single-writer volume, schema-incompatible versions) and where a short outage is acceptable. - Use RollingUpdate with
maxSurge/maxUnavailableand readiness probes for stateless services.
Why → Rolling needs version coexistence; if impossible, Recreate is honest and simple.
Interview tip → Readiness probes make rolling updates safe.