Argo CD sync fails with `one or more objects failed to apply`. How do you debug?
IntermediateScenarioHelm, operators and GitOps
Answer
Situation read → A sync runs, then fails with a validation error.
What I'd do →
argocd app get webandargocd app sync web --dry-run- Read the resource-level message in the UI or CLI
- Common causes: CRD not yet installed, namespace missing, immutable field changes, admission denial
- Use sync waves and
CreateNamespace=true - Check controller logs:
kubectl -n argocd logs deploy/argocd-application-controller
Why → Ordering and validation errors are the usual reasons, and waves control order.
Interview tip → Mention SkipDryRunOnMissingResource.
More on Helm, operators and GitOps
A `helm upgrade` failed halfway. How do you see state and recover?BeginnerHelm says `cannot re-use a name that is still in use` or `another operation is in progress`. What now?IntermediateHow do you review what a Helm upgrade will change before running it?IntermediateWhere do you keep chart values for multiple environments?BeginnerWhat does `helm template` do and how is it different from `helm install`?BeginnerA Helm chart upgrade changed an immutable field and failed. How do you proceed?Advanced