Interview Prep/CI/CD/Deployment Strategies and GitOps

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 →

  1. Use strategy: Recreate for apps with an exclusive resource lock (single-writer volume, schema-incompatible versions) and where a short outage is acceptable.
  2. Use RollingUpdate with maxSurge/maxUnavailable and 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.

All CI/CD questions Roadmap: CI/CD fundamentals

More on Deployment Strategies and GitOps