From 310805f9da66c1ec6653a4933b3e505a21e37719 Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Mon, 28 Feb 2022 17:05:09 +0100 Subject: [PATCH] Fix bug with SA08 when updating prometheus.yaml Change-Id: I167bf1adfa0d9abb02e143f56f5ed70217d1dbb1 Signed-off-by: garciadeblas --- docker/LCM/Dockerfile | 3 +++ installers/docker/osm_pods/lcm.yaml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docker/LCM/Dockerfile b/docker/LCM/Dockerfile index 03907d74..b6c99893 100644 --- a/docker/LCM/Dockerfile +++ b/docker/LCM/Dockerfile @@ -105,6 +105,9 @@ RUN groupadd -g 1000 appuser && \ mkdir /app/log && \ chown -R appuser:appuser /app +RUN mkdir /opt/prometheus +RUN chown appuser: /opt/prometheus + WORKDIR /app/osm_lcm # Changing the security context diff --git a/installers/docker/osm_pods/lcm.yaml b/installers/docker/osm_pods/lcm.yaml index aea32f92..68326716 100644 --- a/installers/docker/osm_pods/lcm.yaml +++ b/installers/docker/osm_pods/lcm.yaml @@ -61,7 +61,7 @@ spec: name: lcm-secret volumeMounts: - name: prometheus-config - mountPath: /etc/prometheus + mountPath: /opt/prometheus volumes: - name: prometheus-config hostPath: -- 2.25.1