From 3fcba505edfd58789c4f1fac2289c505d0f07d54 Mon Sep 17 00:00:00 2001 From: Edward Cheng Date: Wed, 26 Jun 2024 22:47:26 +1000 Subject: [PATCH] update grafana volumes --- .../infrastructure/prometheus/app/deployment.yaml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/kubernetes/infrastructure/prometheus/app/deployment.yaml b/kubernetes/infrastructure/prometheus/app/deployment.yaml index e971d03..0f6ea95 100644 --- a/kubernetes/infrastructure/prometheus/app/deployment.yaml +++ b/kubernetes/infrastructure/prometheus/app/deployment.yaml @@ -46,7 +46,10 @@ spec: ports: - containerPort: 3000 volumeMounts: - - name: prometheus-storage-volume + - name: grafana-config-volume + mountPath: /usr/share/grafana + subPath: grafana + - name: grafana-storage-volume mountPath: /var/lib/grafana subPath: grafana volumes: @@ -57,4 +60,12 @@ spec: - name: prometheus-storage-volume hostPath: path: /mnt/nfs/AppData/prometheus/storage + type: Directory + - name: grafana-config-volume + hostPath: + path: /mnt/nfs/AppData/grafana/conf + type: Directory + - name: grafana-storage-volume + hostPath: + path: /mnt/nfs/AppData/grafana/storage type: Directory \ No newline at end of file