From 4e444e9c7ccbfc2edde1cf96fd5263db2db98958 Mon Sep 17 00:00:00 2001 From: Nuno Aguiar Date: Tue, 9 Jan 2024 11:41:35 +0000 Subject: [PATCH] kube/prometheus2: missing config map in prometheus --- kube/prometheus2.yaml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/kube/prometheus2.yaml b/kube/prometheus2.yaml index 74de41a..120d62e 100644 --- a/kube/prometheus2.yaml +++ b/kube/prometheus2.yaml @@ -158,13 +158,21 @@ init: ports: - name: http containerPort: 9090 - {{#if usePVC}}volumeMounts: + volumeMounts: + - name: prometheus-config + mountPath: /etc/prometheus/ + {{#if usePVC}} - name: prometheus mountPath: /prometheus{{/if}} restartPolicy: Always securityContext: fsGroup: 2000 - {{#if usePVC}}volumes: + volumes: + - name: prometheus-config + configMap: + defaultMode: 420 + name : prometheus + {{#if usePVC}} - name: prometheus persistentVolumeClaim: claimName: prometheus{{/if}}