Interview Prep/Real-World Interview/Deployments and releases

How would you set up a canary release, and what decides whether it gets promoted?

IntermediateScenarioDeployments and releases
Answer

Situation read → A canary is only as good as its promotion criteria. Shifting 5% of traffic without automated analysis is just a slow rollout.

What I'd do →

  1. Use Argo Rollouts (or Flagger) with weighted steps:
strategy:
  canary:
    steps:
      - setWeight: 5
      - pause: {duration: 10m}
      - analysis: {templates: [{templateName: success-rate}]}
      - setWeight: 25
      - pause: {duration: 10m}
      - setWeight: 100
  1. Define an AnalysisTemplate querying Prometheus: error rate of the canary below 1%, p99 below the stable version plus 10%.
  2. Compare canary against stable, not against a fixed number, so normal daily traffic changes don't cause false failures.
  3. Auto-abort on failure; Argo shifts traffic back to stable.
  4. Watch business metrics too (checkout completions), not only HTTP codes.

Why → Automated analysis removes the human staring at dashboards and makes rollback instant.

Interview tip → Say what metric would block promotion; "we watched it" is not an answer.

All Real-World Interview questions Roadmap: Interview readiness

More on Deployments and releases