47 lines
1.2 KiB
YAML
47 lines
1.2 KiB
YAML
apiVersion: helm.toolkit.fluxcd.io/v2beta2
|
|
kind: HelmRelease
|
|
metadata:
|
|
name: kube-prometheus-stack
|
|
spec:
|
|
interval: 1h
|
|
chart:
|
|
spec:
|
|
version: "55.x"
|
|
chart: kube-prometheus-stack
|
|
sourceRef:
|
|
kind: HelmRepository
|
|
name: prometheus-community
|
|
interval: 1h
|
|
install:
|
|
crds: Create
|
|
upgrade:
|
|
crds: CreateReplace
|
|
driftDetection:
|
|
mode: enabled
|
|
ignore:
|
|
# Ignore "validated" annotation which is not inserted during install
|
|
- paths: [ "/metadata/annotations/prometheus-operator-validated" ]
|
|
target:
|
|
kind: PrometheusRule
|
|
valuesFrom:
|
|
- kind: ConfigMap
|
|
name: flux-kube-state-metrics-config
|
|
valuesKey: kube-state-metrics-config.yaml
|
|
# https://github.com/prometheus-community/helm-charts/blob/main/charts/kube-prometheus-stack/values.yaml
|
|
values:
|
|
alertmanager:
|
|
enabled: false
|
|
prometheus:
|
|
prometheusSpec:
|
|
retention: 24h
|
|
resources:
|
|
requests:
|
|
cpu: 200m
|
|
memory: 200Mi
|
|
podMonitorNamespaceSelector: { }
|
|
podMonitorSelector:
|
|
matchLabels:
|
|
app.kubernetes.io/component: monitoring
|
|
grafana:
|
|
defaultDashboardsEnabled: false
|
|
adminPassword: flux |