gf-k8s/state/gullfaxi/apps.yaml

50 lines
1.1 KiB
YAML

---
apiVersion: argoproj.io/v1alpha1
kind: AppProject
metadata:
name: apps
namespace: argocd
# Finalizer that ensures that project is not deleted until it is not referenced by any application
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
description: Project for user applications
sourceRepos:
- '*'
destinations:
- namespace: '*'
server: '*'
clusterResourceWhitelist:
- group: '*'
kind: '*'
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: apps
namespace: argocd
spec:
destination:
server: https://kubernetes.default.svc
namespace: argocd
project: default
source:
repoURL: git@github.com:amkartashov/gf-k8s.git
path: state/gullfaxi/apps/
targetRevision: main
directory:
# https://argo-cd.readthedocs.io/en/stable/user-guide/directory/
recurse: true
exclude: '{values.yaml,*/manifests/*}'
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true
retry:
limit: 5
backoff:
duration: 5s
factor: 2
maxDuration: 3m