diff --git a/application.yaml b/application.yaml new file mode 100644 index 0000000..da7cba0 --- /dev/null +++ b/application.yaml @@ -0,0 +1,33 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: applications + namespace: argocd + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: default + + source: + repoURL: https://github.com/K3S-HOME/applications.git + targetRevision: main + path: . + + destination: + server: https://kubernetes.default.svc + namespace: argocd + + syncPolicy: + automated: + prune: false + selfHeal: true + syncOptions: + - CreateNamespace=true + retry: + limit: 5 + backoff: + duration: 5s + factor: 2 + maxDuration: 3m + + revisionHistoryLimit: 10 diff --git a/kustomization.yaml b/kustomization.yaml index a88aff2..d24483a 100644 --- a/kustomization.yaml +++ b/kustomization.yaml @@ -2,6 +2,9 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: + # Self-reference for App of Apps pattern + - application.yaml + - gitea/argocd.yaml - homer/argocd.yaml - docusaurus/argocd.yaml