Change prometheus folder permissions in prometheus pod 16/11716/1 v10.1.0-rc1
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Tue, 1 Mar 2022 15:37:08 +0000 (16:37 +0100)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Tue, 1 Mar 2022 15:37:08 +0000 (16:37 +0100)
Change-Id: Id77a6ab6ba70c90abd87a76eb505e08f2d3ba7ac
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
installers/docker/osm_pods/prometheus.yaml

index 93cd20a..2b2ee5f 100644 (file)
@@ -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