Interview Prep/CI/CD/Deployment Strategies and GitOps

What is a recreate deployment and when is it acceptable?

BeginnerConceptDeployment Strategies and GitOps
Answer

Recreate stops all old instances, then starts the new ones, causing downtime. It is acceptable for batch jobs, internal tools, dev environments, or apps that cannot run two versions at once (exclusive database locks or incompatible schema), or when downtime windows are agreed. In Kubernetes: strategy.type: Recreate.

All CI/CD questions Roadmap: CI/CD fundamentals

More on Deployment Strategies and GitOps