From: Martin Pitt Date: Wed, 26 May 2021 06:52:23 +0000 (+0200) Subject: Move Prometheus config to directory volume X-Git-Url: https://piware.de/gitweb/?a=commitdiff_plain;h=19d59085ab65db773257b19f37e4ac1ba5105d27;p=learn-metrics.git Move Prometheus config to directory volume This more closely resembles what one would do on Kubernetes with a `ConfigMap`. --- diff --git a/learn-metrics.yaml b/learn-metrics.yaml index 6966d78..273b648 100644 --- a/learn-metrics.yaml +++ b/learn-metrics.yaml @@ -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