update grafana volumes

This commit is contained in:
2024-06-26 23:31:40 +10:00
parent 0799662bd7
commit 386591401b

View File

@@ -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:
@@ -58,3 +67,27 @@ spec:
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