Interview Prep/GitOps & Argo CD/The Application CRD & Sync Policies

What is the `retry` block in a sync policy?

IntermediateConceptThe Application CRD & Sync Policies
Answer

It retries a failed sync operation with exponential backoff:

syncPolicy:
  retry:
    limit: 5            # -1 for unlimited
    backoff:
      duration: 5s
      factor: 2
      maxDuration: 3m

Useful for transient failures: a CRD that another app installs a few seconds later, a webhook that is not ready, API throttling. It is not a fix for broken manifests; those will fail five times instead of once.

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

More on The Application CRD & Sync Policies