Interview Prep/Kubernetes/Deployments and rollouts

How do you make a deployment of 200 pods safe against a bad image without waiting for full rollout?

AdvancedScenarioDeployments and rollouts
Answer

Situation read → A bad version has taken down services before because you only noticed after the rollout finished.

What I'd do →

  1. Use a progressive delivery tool such as Argo Rollouts with canary steps (5%, 25%, 50%, 100%) and pauses
  2. Define an AnalysisTemplate querying Prometheus for error rate and p99 latency
  3. Auto-abort and roll back when the analysis fails
  4. Keep maxUnavailable: 0 and PodDisruptionBudgets in place
  5. Run smoke tests as a pre-promotion analysis step

Why → Automated analysis between steps limits the blast radius to a small share of traffic and removes the human from the critical path of detection.

Interview tip → Mention SLO-based gates: promote only if the error budget burn is acceptable.

All Kubernetes questions Roadmap: Kubernetes core

More on Deployments and rollouts