From 386591401b376572c0b6fa72de4b8ef1fa8ed4c6 Mon Sep 17 00:00:00 2001 From: Edward Cheng Date: Wed, 26 Jun 2024 23:31:40 +1000 Subject: [PATCH] update grafana volumes --- .../prometheus/app/deployment.yaml | 37 ++++++++++++++++++- 1 file changed, 35 insertions(+), 2 deletions(-) diff --git a/kubernetes/infrastructure/prometheus/app/deployment.yaml b/kubernetes/infrastructure/prometheus/app/deployment.yaml index e971d03..7ce5e25 100644 --- a/kubernetes/infrastructure/prometheus/app/deployment.yaml +++ b/kubernetes/infrastructure/prometheus/app/deployment.yaml @@ -46,9 +46,18 @@ spec: ports: - containerPort: 3000 volumeMounts: - - name: prometheus-storage-volume + - name: grafana-config-volume + mountPath: /etc/grafana + - name: grafana-data-volume mountPath: /var/lib/grafana - subPath: grafana + - name: grafana-home-volume + mountPath: /usr/share/grafana + - name: grafana-logs-volume + mountPath: /var/log/grafana + - name: grafana-plugins-volume + mountPath: /var/lib/grafana/plugins + - name: grafana-provisioning-volume + mountPath: /etc/grafana/provisioning volumes: - name: prometheus-config-volume hostPath: @@ -57,4 +66,28 @@ spec: - name: prometheus-storage-volume hostPath: path: /mnt/nfs/AppData/prometheus/storage + type: Directory + - name: grafana-config-volume + hostPath: + path: /mnt/nfs/AppData/grafana/config + type: Directory + - name: grafana-data-volume + hostPath: + path: /mnt/nfs/AppData/grafana/data + type: Directory + - name: grafana-home-volume + hostPath: + path: /mnt/nfs/AppData/grafana/home + type: Directory + - name: grafana-logs-volume + hostPath: + path: /mnt/nfs/AppData/grafana/logs + type: Directory + - name: grafana-plugins-volume + hostPath: + path: /mnt/nfs/AppData/grafana/plugins + type: Directory + - name: grafana-provisioning-volume + hostPath: + path: /mnt/nfs/AppData/grafana/provisioning type: Directory \ No newline at end of file