application root

This commit is contained in:
Hoang Nguyen
2026-05-03 22:33:58 +02:00
parent bb1cd2a526
commit 5791faac20
4 changed files with 40 additions and 39 deletions

View File

@@ -0,0 +1,20 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: kafka-dev
namespace: argocd
spec:
project: default
source:
repoURL: 'https://gitea.vhn-demo.duckdns.org/hoang/strimzi.git'
path: k8s/overlays/dev
targetRevision: main
destination:
server: 'https://kubernetes.default.svc'
namespace: kafka-dev
syncPolicy:
automated:
prune: true
selfHeel: true
syncOptions:
- CreateNamespace=true

View File

@@ -11,6 +11,8 @@ spec:
targetRevision: 5.3.0
helm:
values: |
mode: standalone # WICHTIG: in Produktion solltest du den Modus "distributed" verwenden
replicas: 1 # WICHTIG: in Produktion mindestens 4 Replikate
buckets:
- name: backups
policy: none

18
argocd/root-app.yaml Normal file
View File

@@ -0,0 +1,18 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: root-app
namespace: argocd
spec:
project: default
source:
repoURL: 'https://gitea.vhn-demo.duckdns.org/hoang/strimzi.git'
path: argocd/applications
targetRevision: main
destination:
server: 'https://kubernetes.default.svc'
namespace: argocd
syncPolicy:
automated:
prune: true
selfHeel: true

View File

@@ -1,39 +0,0 @@
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: strimzi-apps
namespace: argocd
spec:
generators:
- git:
repoURL: 'https://gitea.vhn-demo.duckdns.org/hoang/strimzi.git'
revision: main
directories:
- path: k8s/overlays/*
template:
metadata:
name: 'kafka-{{path.basename}}'
spec:
project: default
source:
repoURL: 'https://gitea.vhn-demo.duckdns.org/hoang/strimzi.git'
targetRevision: main
path: '{{path}}'
destination:
server: 'https://kubernetes.default.svc'
namespace: 'kafka-{{path.basename}}'
syncPolicy:
automated:
prune: true
selfHeel: true
syncOptions:
- CreateNamespace=true
#kubectl create secret generic alertmanager-secrets -n monitoring \
# --from-literal=smtp_password='DEIN_SMTP_PASSWORT' \
# --from-literal=twilio_token='DEIN_TWILIO_AUTH_TOKEN'
# kubectl create secret generic s3-creds -n database \
# --from-literal=ACCESS_KEY_ID=admin \
# --from-literal=SECRET_ACCESS_KEY=password123