Interview Prep/GitOps & Argo CD/CI Integration & Progressive Delivery

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 →

  1. Convert the Deployment to an Argo Rollouts canary.
  2. AnalysisTemplate with a Prometheus success-rate query, successCondition: result[0] >= 0.99, failureLimit: 1.
  3. Background analysis from step 1 or inline after each setWeight.
  4. 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.

All GitOps & Argo CD questions Roadmap: Argo CD (GitOps)

More on CI Integration & Progressive Delivery