From 99f654d10d9c7f2ff05666f9dd32a8cbd42704ec Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Tue, 1 Mar 2022 16:37:08 +0100 Subject: [PATCH] Change prometheus folder permissions in prometheus pod Change-Id: Id77a6ab6ba70c90abd87a76eb505e08f2d3ba7ac Signed-off-by: garciadeblas --- installers/docker/osm_pods/prometheus.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installers/docker/osm_pods/prometheus.yaml b/installers/docker/osm_pods/prometheus.yaml index 93cd20ae..2b2ee5fc 100644 --- a/installers/docker/osm_pods/prometheus.yaml +++ b/installers/docker/osm_pods/prometheus.yaml @@ -85,7 +85,7 @@ spec: - name: prometheus-init-config image: busybox command: ["/bin/sh", "-c"] - args: ['if [ ! -f "/etc/prometheus/prometheus.yml" ]; then cp /etc/prometheus_init/prometheus.yml /etc/prometheus; fi'] + args: ['if [ ! -f "/etc/prometheus/prometheus.yml" ]; then cp /etc/prometheus_init/prometheus.yml /etc/prometheus; chown -R 1000:1000 /etc/prometheus; fi'] volumeMounts: - name: prom-config mountPath: /etc/prometheus -- 2.25.1