From 2f1deb0215ffece7ca3701521b5d01648b71d73a Mon Sep 17 00:00:00 2001 From: Dominik Chilla Date: Mon, 3 Oct 2022 20:26:59 +0200 Subject: [PATCH] grafana persistence --- prom-stack-values.yaml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/prom-stack-values.yaml b/prom-stack-values.yaml index 3e53882..0ab9ebd 100644 --- a/prom-stack-values.yaml +++ b/prom-stack-values.yaml @@ -713,8 +713,19 @@ alertmanager: grafana: enabled: true namespaceOverride: "" + + # https://github.com/prometheus-community/helm-charts/issues/436#issuecomment-740664621 + persistence: + enabled: true + type: pvc + storageClassName: %PVC_STORAGECLASS% + accessModes: + - ReadWriteOnce + size: %PVC_STORAGE_SIZE_GRAFANA% + finalizers: + - kubernetes.io/pvc-protection - # https://github.com/prometheus-community/helm-charts/issues/1969#issuecomment-1119567241 + # h%ttps://github.com/prometheus-community/helm-charts/issues/1969#issuecomment-1119567241 grafana.ini: smtp: enabled: true