Interview Prep/GitOps & Argo CD/Sync Operations, Hooks & Health

Sync shows `Retrying attempt #5` and the operation finally fails with `admission webhook "validation.gatekeeper.sh" denied the request`.

IntermediateTroubleshootingSync Operations, Hooks & Health
Answer

Likely causes → A policy engine (Gatekeeper, Kyverno) rejects the object, for example missing resource limits or a disallowed registry. Retries cannot help.

Diagnose → argocd app get web shows the full denial message; kubectl get constraints or kubectl get clusterpolicy on the cluster.

Fix → Fix the manifest in Git to meet the policy. Do not add policy exceptions to unblock one deploy without review.

Prevent → Run the same policies in CI (gator test, kyverno apply) against rendered manifests before merge.

All GitOps & Argo CD questions Roadmap: Argo CD (GitOps)

More on Sync Operations, Hooks & Health