How do you configure automated sync with retry and backoff?
Short answer
Under syncPolicy you can set retry with limit and backoff (duration, factor, maxDuration) so failed syncs retry with exponential backoff instead of immediately failing. This handles transient errors (e.g., a dependency not yet ready) gracefully during automated reconciliation.
Advertisement
AModel answer
Under syncPolicy you can set retry with limit and backoff (duration, factor, maxDuration) so failed syncs retry with exponential backoff instead of immediately failing. This handles transient errors (e.g., a dependency not yet ready) gracefully during automated reconciliation.
syncPolicy:
automated: { selfHeal: true }
retry:
limit: 5
backoff:
duration: 5s
factor: 2
maxDuration: 3mReal-world example
A sync that fails because a CRD isn't installed yet retries with backoff and succeeds once the CRD appears.
Likely follow-ups
- Why use backoff on retries? | What fields configure retry?
Related topics