A canary deploy needs automated rollback when the error rate rises.
AdvancedScenarioDeployment Strategies and GitOps
Answer
Situation read → Metric-driven progressive delivery.
What I'd do →
- Use Argo Rollouts with a canary strategy:
setWeight: 10,pause: {duration: 5m},analysisstep. - Define an
AnalysisTemplatequerying Prometheus: success ratesum(rate(http_requests_total{status!~"5.."}[5m])) / sum(rate(http_requests_total[5m])) > 0.99. - On failure the Rollout aborts and returns traffic to stable automatically.
Why → Machines react faster than on-call humans, and the blast radius stays small.
Interview tip → Pair with a traffic router (Istio, NGINX, ALB) for precise percentage splits.