diff --git a/bootstrap/root-app.yaml b/bootstrap/root-app.yaml new file mode 100644 index 0000000..a689b59 --- /dev/null +++ b/bootstrap/root-app.yaml @@ -0,0 +1,20 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: root-app + namespace: argocd + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: default + source: + repoURL: 'http://localhost:3000/hdw/cluster-state.git' + targetRevision: HEAD + path: apps/ # WICHTIG: Das ist der Ordner mit den Kind-Apps + destination: + server: 'https://kubernetes.default.svc' + namespace: argocd # Argo CD muss sich selbst verwalten können + syncPolicy: + automated: + prune: true # Löscht Apps, wenn sie aus dem Repo entfernt werden + selfHeal: true # Korrigiert Abweichungen automatisch diff --git a/platform/argocd/kustomization.yaml b/platform/argocd/kustomization.yaml deleted file mode 100644 index 8017f14..0000000 --- a/platform/argocd/kustomization.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: argocd -resources: - - https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml