gitops-apps/bootstrap/root-app.yaml

22 lines
548 B
YAML

# App-of-Apps: applying this one Application redeploys every workload
# defined under apps/ onto the target cluster.
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: root-app
namespace: argocd
spec:
project: default
source:
repoURL: http://localhost:3000/forgejoadmin/gitops-apps.git
targetRevision: main
path: apps
destination:
server: https://kubernetes.default.svc
namespace: argocd
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true