update grafana

This commit is contained in:
2025-03-30 00:18:26 +01:00
parent 6e4fb0a210
commit 12b9566634
2 changed files with 21 additions and 8 deletions

View File

@@ -51,7 +51,13 @@ spec:
volumeMounts:
- mountPath: /var/lib/grafana
name: grafana-pv
- name: grafana-datasources
mountPath: /etc/grafana/provisioning/datasources/datasources.yaml
subPath: datasources.yaml
volumes:
- name: grafana-pv
persistentVolumeClaim:
claimName: grafana-pvc
- name: grafana-datasources
configMap:
name: grafana-datasources

View File

@@ -1,8 +1,15 @@
apiVersion: 1
datasources:
- name: Prometheus
type: prometheus
access: proxy
url: http://prometheus-k8s.monitoring:9090
isDefault: true
editable: false
apiVersion: v1
kind: ConfigMap
metadata:
name: grafana-datasources
namespace: grafana
data:
datasources.yaml: |
apiVersion: 1
datasources:
- name: Prometheus
type: prometheus
access: proxy
url: http://prometheus-k8s.monitoring:9090
isDefault: true
editable: false