FEAT(repo): add App of Apps self-reference
- Add application.yaml for ArgoCD self-registration - Update kustomization.yaml to include application.yaml - Set prune: false to prevent cascade deletion
This commit is contained in:
33
application.yaml
Normal file
33
application.yaml
Normal file
@@ -0,0 +1,33 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: web-apps
|
||||
namespace: argocd
|
||||
finalizers:
|
||||
- resources-finalizer.argocd.argoproj.io
|
||||
spec:
|
||||
project: default
|
||||
|
||||
source:
|
||||
repoURL: https://github.com/K3S-HOME/web-apps.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
|
||||
@@ -2,6 +2,9 @@ apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
# Self-reference for App of Apps pattern
|
||||
- application.yaml
|
||||
|
||||
- jovies/argocd.yaml
|
||||
- portfolio/argocd.yaml
|
||||
- todo/argocd.yaml
|
||||
|
||||
Reference in New Issue
Block a user