Declarative and imperative management · Question 12 of 12
A Deployment is controlled by a HorizontalPodAutoscaler, and the manifest in the repository contains replicas: 2. GitOps syncs continuously. What applies?
2 answers are correct. Hard Created with AI
Show answer
Answer
- C With every sync, replicas can jump to 2, after which the HPA scales again
- D You should leave spec.replicas out of the manifest or exclude the field from reconciliation
Explanation
In Argo CD, ignoreDifferences for /spec/replicas helps. If the field is missing from the manifest, the default value 1 applies when the object is first created.