Change-Id: Id77a6ab6ba70c90abd87a76eb505e08f2d3ba7ac
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
- 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