You want automatic rollback when error rates rise after a deploy. How do you build it?
IntermediateScenarioCI Integration & Progressive Delivery
Answer
Situation read → Argo CD alone does not watch business metrics.
What I'd do →
- Convert the Deployment to an Argo Rollouts canary.
- AnalysisTemplate with a Prometheus success-rate query,
successCondition: result[0] >= 0.99,failureLimit: 1. - Background analysis from step 1 or inline after each
setWeight. - On failure, Rollouts aborts and traffic returns to stable; then revert the Git commit to match.
Why → Rollouts acts in seconds based on metrics; Git revert keeps the source of truth honest.
Interview tip → Clarify that "rollback" here is abort to stable, and Git still needs the revert.
More on CI Integration & Progressive Delivery
Design a CI pipeline that deploys through GitOps without giving CI cluster access.BeginnerTwo pipelines commit tag bumps to the config repo at the same time and one fails with "rejected, non-fast-forward". How do you make it robust?BeginnerShould CI wait for Argo CD to finish deploying before marking the pipeline green?IntermediateYour canary uses replica-based weights with 3 replicas and `setWeight: 10`. What actually happens and what do you change?IntermediateProduct wants internal staff to test the new version in production before any customer sees it. How?AdvancedYou want a release to stop at 50% in prod until a human approves. How?Beginner