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

Your Argo Rollouts canary works, but Argo CD shows the app OutOfSync during every rollout. Why, and what do you change?

AdvancedScenarioCI Integration & Progressive Delivery
Answer

Situation read → Something in Git is being modified by Rollouts.

What I'd do →

  1. Check the diff: commonly the canary Ingress or Service selectors, or a Deployment referenced via workloadRef that Rollouts scales to zero.
  2. Do not declare objects Rollouts creates (canary Ingress).
  3. For a workloadRef Deployment, set its replicas to 0 in Git or ignore /spec/replicas.
  4. If you define selectors on stable/canary Services, let Rollouts manage the rollouts-pod-template-hash key; three-way diff usually ignores it, server-side diff may need an ignore rule.

Why → Two controllers writing the same field always produces drift.

Interview tip → Same principle as HPA vs replicas: one owner per field.

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

More on CI Integration & Progressive Delivery