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

23
bootstrap/root-infra.yaml Normal file
View File

@@ -0,0 +1,23 @@
# root-infra.yaml
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: root-infra
namespace: argocd
annotations:
argocd.argoproj.io/sync-wave: "1" # Muss zuerst starten
spec:
project: default
source:
repoURL: 'http://gitea-service.gitea.svc.cluster.local:3000/hdw/cluster-state.git'
path: infrastructure
targetRevision: HEAD
directory:
recurse: true
destination:
server: 'https://kubernetes.default.svc'
namespace: argocd
syncPolicy:
automated:
prune: true
selfHeal: true