Sync Policy: Every Field, Every Sync Option, Every Annotation
50%
Retrying Failed Sync Attempts and Backoff Strategy
By default, Argo CD does not retry a failed sync. If an automated sync fails, the application stays OutOfSync and Argo CD does not attempt the sync again until the next commit or a manual sync. To get automatic retries, you define a retry strategy. Here is an example that retries the sync up to 10 times with a backoff strategy:
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: todo-app
namespace: argocd
spec:
destination:
namespace: default
server: https://kubernetes.default.svc
project: default
source:
path: manifests
repoURL: $GITLAB_URL
targetRevision: main
syncPolicy:
automated:
prune: true
selfHeal: true
allowEmpty: false
# This is the retry configuration
retry:
limit: 10
backoff:
duration: 10s
factor: 3
maxDuration:GitOps the Hard Way, with Argo CD
Build Real GitOps Pipelines From Empty Clusters to Automated DeploysEnroll now to unlock all content and receive all future updates for free.
Unlock now $20.99$16.79Learn More
Hurry! This limited time offer ends in:
To redeem this offer, copy the coupon code below and apply it at checkout:
