monitoring
This commit is contained in:
61
infrastructure/prometheus/monitoring-app.yaml
Normal file
61
infrastructure/prometheus/monitoring-app.yaml
Normal file
@@ -0,0 +1,61 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: prometheus-stack
|
||||
namespace: argocd
|
||||
spec:
|
||||
project: default
|
||||
source:
|
||||
repoURL: https://prometheus-community.github.io/helm-charts
|
||||
targetRevision: 61.x.x
|
||||
chart: kube-prometheus-stack
|
||||
helm:
|
||||
values: |
|
||||
namespaceOverride: "monitoring"
|
||||
|
||||
# Gemeinsame Labels für alle Ressourcen
|
||||
commonLabels:
|
||||
tier: infra
|
||||
|
||||
prometheus:
|
||||
prometheusSpec:
|
||||
# Prometheus soll nur auf Nodes mit diesem Label laufen:
|
||||
nodeSelector:
|
||||
tier: infra
|
||||
retention: 7d
|
||||
storageSpec:
|
||||
volumeClaimTemplate:
|
||||
spec:
|
||||
accessModes: ["ReadWriteOnce"]
|
||||
resources:
|
||||
requests:
|
||||
storage: 10Gi
|
||||
resources:
|
||||
requests:
|
||||
memory: "1Gi"
|
||||
limits:
|
||||
memory: "2Gi"
|
||||
|
||||
grafana:
|
||||
# Auch Grafana ziehen wir auf die Infra-Nodes
|
||||
nodeSelector:
|
||||
tier: infra
|
||||
persistence:
|
||||
enabled: true
|
||||
size: 2Gi
|
||||
|
||||
# Der Node-Exporter läuft weiterhin als DaemonSet ÜBERALL,
|
||||
# damit er JEDEN RAM im Cluster sieht.
|
||||
nodeExporter:
|
||||
enabled: true
|
||||
operatingSystem: linux
|
||||
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: monitoring
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
||||
Reference in New Issue
Block a user