first commit

This commit is contained in:
Hoang Nguyen
2026-05-05 22:33:13 +02:00
commit 423c4ab11d
8 changed files with 27004 additions and 0 deletions

View File

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

View File

@@ -0,0 +1,60 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: monitoring
namespace: argocd
spec:
project: default
source:
repoURL: https://prometheus-community.github.io/helm-charts
chart: kube-prometheus-stack
targetRevision: 58.0.0
helm:
values: |
# Deaktiviere die automatische Installation der CRDs durch das Helm-Chart
# Das Helm-Chart hat eine Option dafür:
prometheusOperator:
createCustomResource: false
alertmanager:
config:
global:
smtp_smarthost: 'smtp.dein-provider.de:587'
smtp_from: 'alertmanager@dein-cluster.de'
smtp_auth_username: 'dein-user'
smtp_auth_password_file: '/etc/alertmanager/secrets/smtp_password'
receivers:
- name: 'teams-channel'
webhook_configs:
- url: 'https://webhook.office.com/webhookb2/...'
- name: 'email-admin'
email_configs:
- to: 'admin@example.com'
send_resolved: true
- name: 'sms-service'
webhook_configs:
- url: 'https://api.twilio.com/...'
http_config:
basic_auth:
username: 'AC_SID'
password_file: '/etc/alertmanager/secrets/twilio_token'
route:
receiver: 'teams-channel'
routes:
- receiver: 'email-admin'
match:
severity: critical
alertmanagerSpec:
secrets:
- alertmanager-secrets
destination:
server: 'https://kubernetes.default.svc'
namespace: monitoring
syncPolicy:
automated:
prune: false
selfHeel: false
syncOptions:
- CreateNamespace=true
- ServerSideApply=true
dependsOn:
- name: monitoring-crds