mirror of
https://github.com/amkartashov/gf-k8s.git
synced 2026-01-10 01:19:44 +00:00
50 lines
1.1 KiB
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
|