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 →
- Check the diff: commonly the canary Ingress or Service selectors, or a Deployment referenced via
workloadRefthat Rollouts scales to zero. - Do not declare objects Rollouts creates (canary Ingress).
- For a
workloadRefDeployment, set its replicas to 0 in Git or ignore/spec/replicas. - If you define selectors on stable/canary Services, let Rollouts manage the
rollouts-pod-template-hashkey; 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.
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?IntermediateYou want automatic rollback when error rates rise after a deploy. How do you build it?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?Advanced