diff --git a/argocd/applications/inventory-app.yaml b/argocd/applications/inventory-app.yaml new file mode 100644 index 0000000..f670e14 --- /dev/null +++ b/argocd/applications/inventory-app.yaml @@ -0,0 +1,32 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: inventory-app + namespace: argocd + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: default + source: + repoURL: https://gitea.example.com/inventory/k8s-manifests.git + targetRevision: HEAD + path: overlays/prod + destination: + server: https://kubernetes.default.svc + namespace: inventory + syncPolicy: + automated: + prune: true + selfHeal: true + allowEmpty: false + syncOptions: + - CreateNamespace=true + - PrunePropagationPolicy=foreground + - PruneLast=true + retry: + limit: 5 + backoff: + duration: 5s + factor: 2 + maxDuration: 3m + revisionHistoryLimit: 10