]> piware.de Git - learn-metrics.git/blobdiff - learn-metrics.yaml
Move Grafana config to directory volume
[learn-metrics.git] / learn-metrics.yaml
index 273b6480453d5664775d2f950974d7c58889a14d..7c1c7ea563403d001bfec83d51e3b165bb50c801 100644 (file)
@@ -11,16 +11,21 @@ spec:
     env:
     - name: GF_SECURITY_ADMIN_PASSWORD
       value: foobar
+    - name: GF_PATHS_CONFIG
+      value: /grafana-config/grafana.ini
     ports:
     - containerPort: 3000
       hostPort: 3000
       protocol: TCP
     volumeMounts:
+    - name: grafana-config
+      mountPath: /grafana-config
+      readOnly: true
     - name: grafana-datasource
       mountPath: /etc/grafana/provisioning/datasources/datasource.yaml
       readOnly: true
 
-  - image: docker.io/prom/prometheus:latest
+  - image: quay.io/prometheus/prometheus:latest
     name: prometheus
     ports:
     - containerPort: 9090
@@ -43,6 +48,9 @@ spec:
       path: ./conf-grafana/datasource.yaml
       type: File
     name: grafana-datasource
+  - hostPath:
+      path: ./conf-grafana
+    name: grafana-config
   - hostPath:
       path: ./conf-prometheus
     name: prometheus-config