From 19d59085ab65db773257b19f37e4ac1ba5105d27 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Wed, 26 May 2021 08:52:23 +0200 Subject: [PATCH] Move Prometheus config to directory volume This more closely resembles what one would do on Kubernetes with a `ConfigMap`. --- learn-metrics.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 -- 2.39.5