argocd/cluster/apps.yaml
un-oeil a5a2d23761 Scaffold Argo CD: self-managed install, app-of-apps, apps/ ApplicationSet
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 15:03:25 +02:00

35 lines
987 B
YAML

# One Argo CD Application per folder in apps/, deployed to a namespace of the
# same name. Argo detects the folder type: Chart.yaml -> Helm,
# kustomization.yaml -> Kustomize, otherwise plain manifests.
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: apps
namespace: argocd
spec:
goTemplate: true
goTemplateOptions: ["missingkey=error"]
generators:
- git:
repoURL: http://10.0.0.14:3000/un-oeil/argocd.git
revision: main
directories:
- path: apps/*
template:
metadata:
name: "{{.path.basename}}"
spec:
project: default
source:
repoURL: http://10.0.0.14:3000/un-oeil/argocd.git
targetRevision: main
path: "{{.path.path}}"
destination:
server: https://kubernetes.default.svc
namespace: "{{.path.basename}}"
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true