Interview Prep/CI/CD/Deployment Strategies and GitOps

What is a rolling deployment?

BeginnerConceptDeployment Strategies and GitOps
Answer

A rolling deployment replaces instances of the old version with the new one gradually, a few at a time, so capacity is maintained and there is no downtime. It is the Kubernetes Deployment default. Rollback is another rolling update in reverse. Downsides: old and new versions serve traffic simultaneously (so they must be compatible), and rollback takes as long as rollout.

strategy:
  type: RollingUpdate
  rollingUpdate: { maxSurge: 25%, maxUnavailable: 0 }
All CI/CD questions Roadmap: CI/CD fundamentals

More on Deployment Strategies and GitOps