From 5e602fae47bd67e8db9bb2ace1f35ce8c798a162 Mon Sep 17 00:00:00 2001 From: nold Date: Fri, 30 Dec 2022 20:38:01 +0100 Subject: [PATCH] feat(grafana): persistance --- projects/grafana/project.yml | 2 +- projects/grafana/values/kube-prometheus-stack.yaml | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/projects/grafana/project.yml b/projects/grafana/project.yml index 4c642282..7394577c 100644 --- a/projects/grafana/project.yml +++ b/projects/grafana/project.yml @@ -15,7 +15,7 @@ apps: - name: kube-prometheus-crds repoURL: https://github.com/prometheus-community/helm-charts.git path: charts/kube-prometheus-stack/crds/ - targetRevision: kube-prometheus-stack-40.0.2 + targetRevision: kube-prometheus-stack-42.3.0 directory: recurse: true syncPolicy: diff --git a/projects/grafana/values/kube-prometheus-stack.yaml b/projects/grafana/values/kube-prometheus-stack.yaml index 18a0977e..8ed4bb59 100644 --- a/projects/grafana/values/kube-prometheus-stack.yaml +++ b/projects/grafana/values/kube-prometheus-stack.yaml @@ -658,6 +658,13 @@ grafana: persistence: enabled: true + type: pvc + storageClassName: default + accessModes: + - ReadWriteOnce + size: 4Gi + finalizers: + - kubernetes.io/pvc-protection ## ForceDeployDatasources Create datasource configmap even if grafana deployment has been disabled ##