Interview Prep/CI/CD/Deployment Strategies and GitOps

Argo CD shows an app permanently OutOfSync due to a field changed by an operator or HPA.

IntermediateScenarioDeployment Strategies and GitOps
Answer

Situation read → Controller-managed fields conflict with Git.

What I'd do →

  1. Identify the diff: argocd app diff payments.
  2. Add ignoreDifferences for the field, for example /spec/replicas when an HPA scales.
  3. Or remove replicas from the manifest when using an HPA.

Why → Git should not own fields controlled by another controller.

Interview tip → ignoreDifferences with jsonPointers or jqPathExpressions.

All CI/CD questions Roadmap: CI/CD fundamentals

More on Deployment Strategies and GitOps