]> piware.de Git - learn-metrics.git/commitdiff
Move Prometheus config to directory volume
authorMartin Pitt <martin@piware.de>
Wed, 26 May 2021 06:52:23 +0000 (08:52 +0200)
committerMartin Pitt <martin@piware.de>
Wed, 26 May 2021 06:52:23 +0000 (08:52 +0200)
This more closely resembles what one would do on Kubernetes with a
`ConfigMap`.

learn-metrics.yaml

index 6966d782784f1423579ec55caef08cdfaeeec434..273b6480453d5664775d2f950974d7c58889a14d 100644 (file)
@@ -28,7 +28,7 @@ spec:
       protocol: TCP
     volumeMounts:
       - name: prometheus-config
-        mountPath: /etc/prometheus/prometheus.yml
+        mountPath: /etc/prometheus
         readOnly: true
 
   - image: quay.io/bitnami/nginx
@@ -44,8 +44,7 @@ spec:
       type: File
     name: grafana-datasource
   - hostPath:
-      path: ./conf-prometheus/prometheus.yml
-      type: File
+      path: ./conf-prometheus
     name: prometheus-config
   - hostPath:
       path: ./http