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 →
- Use a progressive delivery tool such as Argo Rollouts with canary steps (5%, 25%, 50%, 100%) and pauses
- Define an AnalysisTemplate querying Prometheus for error rate and p99 latency
- Auto-abort and roll back when the analysis fails
- Keep
maxUnavailable: 0and PodDisruptionBudgets in place - 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.
More on Deployments and rollouts
You applied a new image tag and the rollout seems stuck at "1 out of 3 new replicas have been updated". What do you check first?BeginnerHow do you roll back a bad release and verify you are back on the previous version?BeginnerA rollout must never reduce capacity below current replicas. How do you configure the strategy?IntermediateYou need a blue/green deployment without a service mesh. How do you do it with plain Kubernetes?IntermediateHow would you do a canary release with only Deployments and a Service?IntermediateWhat is the difference between Recreate and RollingUpdate strategies and when would you pick Recreate?Beginner