Your app needs cert-manager's CRDs, an Issuer and then a Certificate, all in one Application. The first sync fails. What do you do?
IntermediateScenarioSync Behaviour, Waves & Hooks
Answer
Situation read → CRDs and CRs in the same sync; dry-run fails for unknown kinds.
What I'd do →
- Put CRDs in wave
-2, the Issuer in-1, the Certificate and workloads in0. - Add
SkipDryRunOnMissingResource=trueso the dry-run does not fail on kinds whose CRD is not created yet. - Add a Lua health check for
Issuer/Certificate(or rely on the built-in one) so waves wait for readiness. - Better: install cert-manager as its own Application in an earlier wave of the app-of-apps.
Why → Waves order the apply, and skipping the dry-run avoids failing on unknown types.
Interview tip → Say you prefer separating operators from their consumers into different apps.
More on Sync Behaviour, Waves & Hooks
A new release needs a database migration that must finish before the new pods start. How do you implement it in Argo CD?IntermediateAfter enabling `prune: true`, someone renames a folder and the next sync would delete a production StatefulSet and its PVCs. How do you prevent this class of incident?AdvancedYou want a smoke test to run after every deploy and mark the sync failed if it fails. How?BeginnerAn HPA scales your Deployment, but Argo CD with self-heal keeps resetting replicas to 2. What do you do?BeginnerYou must change a Deployment's label selector, which is immutable. How do you roll it out with Argo CD?AdvancedA team wants Argo CD to deploy only during business hours, except for emergencies. How do you set it up?Beginner