feat: initial bootstrap manifests for argocd and gitea

This commit is contained in:
HDW
2026-04-19 18:15:18 +02:00
parent 2729eb1f27
commit 92780cef3b
2 changed files with 33 additions and 7 deletions

View File

@@ -1,20 +1,23 @@
# root-apps.yaml
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: root-app
name: root-apps
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
annotations:
argocd.argoproj.io/sync-wave: "2" # Läuft erst, wenn Infra steht
spec:
project: default
source:
repoURL: 'http://gitea-service.gitea.svc.cluster.local:3000/hdw/cluster-state.git'
path: apps
targetRevision: HEAD
path: apps/ # WICHTIG: Das ist der Ordner mit den Kind-Apps
directory:
recurse: true
destination:
server: 'https://kubernetes.default.svc'
namespace: argocd # Argo CD muss sich selbst verwalten können
namespace: argocd
syncPolicy:
automated:
prune: true # Löscht Apps, wenn sie aus dem Repo entfernt werden
selfHeal: true # Korrigiert Abweichungen automatisch
prune: true
selfHeal: true