Merge pull request #356 from 3dwardch3ng/infra/prometheus

update grafana volumes
This commit is contained in:
2024-06-26 23:33:51 +10:00
committed by GitHub

View File

@@ -46,9 +46,18 @@ spec:
ports: ports:
- containerPort: 3000 - containerPort: 3000
volumeMounts: volumeMounts:
- name: prometheus-storage-volume - name: grafana-config-volume
mountPath: /etc/grafana
- name: grafana-data-volume
mountPath: /var/lib/grafana 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: volumes:
- name: prometheus-config-volume - name: prometheus-config-volume
hostPath: hostPath:
@@ -57,4 +66,28 @@ spec:
- name: prometheus-storage-volume - name: prometheus-storage-volume
hostPath: hostPath:
path: /mnt/nfs/AppData/prometheus/storage 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 type: Directory