apiVersion: argoproj.io/v1alpha1 kind: Application metadata: name: k8sexample namespace: cicd # Add a this finalizer ONLY if you want these to cascade delete. finalizers: - resources-finalizer.argocd.argoproj.io spec: project: default source: repoURL: "https://github.com/vsvale/k8s_example.git" path: repository/manifests targetRevision: HEAD # directory directory: recurse: false destination: server: "https://kubernetes.default.svc" namespace: default # Sync policy syncPolicy: automated: # automated sync by default retries failed attempts 5 times with following delays between attempts ( 5s, 10s, 20s, 40s, 80s ); retry controlled using `retry` field. prune: true # Specifies if resources should be pruned during auto-syncing ( false by default ). selfHeal: true # Specifies if partial app sync should be executed when resources are changed only in target Kubernetes cluster and no git change detected ( false by default ). allowEmpty: false # Allows deleting all application resources during automatic syncing ( false by default ).