diff options
author | Bartek Grzybowski <b.grzybowski@partner.samsung.com> | 2021-06-15 14:12:05 +0200 |
---|---|---|
committer | Bartek Grzybowski <b.grzybowski@partner.samsung.com> | 2021-06-15 14:12:05 +0200 |
commit | 86552728e74958d9b0562f747ad83575f614c882 (patch) | |
tree | 38989ecab58545f0488a125010418699cd5b3c0b /ansible/roles/kube-prometheus-stack | |
parent | 870a9715044bf8e1d48851ae732f579f3afcd666 (diff) |
[ANSIBLE] Setup persistent volume for Grafana dashboards
Change-Id: Ifb45abae0c8a7716addbd62d340423f1c1e44c03
Issue-ID: INT-1926
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Diffstat (limited to 'ansible/roles/kube-prometheus-stack')
-rw-r--r-- | ansible/roles/kube-prometheus-stack/defaults/main.yml | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/ansible/roles/kube-prometheus-stack/defaults/main.yml b/ansible/roles/kube-prometheus-stack/defaults/main.yml index f84fd0a0..d6b49d47 100644 --- a/ansible/roles/kube-prometheus-stack/defaults/main.yml +++ b/ansible/roles/kube-prometheus-stack/defaults/main.yml @@ -7,6 +7,13 @@ kube_prometheus_stack: helm_values: grafana: adminPassword: admin + persistence: + type: pvc + enabled: true + storageClassName: kube-prometheus-grafana + accessModes: + - ReadWriteOnce + size: 4Gi prometheus: prometheusSpec: scrapeInterval: 60s @@ -14,7 +21,7 @@ kube_prometheus_stack: disableMountSubPath: true volumeClaimTemplate: spec: - storageClassName: kube-prometheus + storageClassName: kube-prometheus-prometheus accessModes: ["ReadWriteOnce"] resources: requests: |