What role do webhooks play in GitOps with ArgoCD?
Short answer
Git webhooks notify ArgoCD immediately when a repo changes, triggering reconciliation without waiting for the poll interval. This shortens deploy latency from minutes to seconds and reduces unnecessary polling load, while polling remains a fallback if a webhook is missed.
Advertisement
AModel answer
Git webhooks notify ArgoCD immediately when a repo changes, triggering reconciliation without waiting for the poll interval. This shortens deploy latency from minutes to seconds and reduces unnecessary polling load, while polling remains a fallback if a webhook is missed.
Example
# Configure a webhook to POST to /api/webhook on push
Real-world example
A push to main triggers an ArgoCD webhook, syncing the change within seconds instead of the next 3-minute poll.
Likely follow-ups
- What happens if a webhook is missed? | How much latency do webhooks save?
Related topics