X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=installers%2Fdocker%2Fosm_pods%2Flcm.yaml;h=68326716a09d340c13030a1d90cf4f91a4e5b2f5;hb=7e4e7d0ed50731215c2097c0564ca76f9fe16815;hp=f66b9d38eb88c2cc6ea169e73afa50f3d94d72d9;hpb=3fa717f81e02ef05639f099010d8acc46125c196;p=osm%2Fdevops.git diff --git a/installers/docker/osm_pods/lcm.yaml b/installers/docker/osm_pods/lcm.yaml index f66b9d38..68326716 100644 --- a/installers/docker/osm_pods/lcm.yaml +++ b/installers/docker/osm_pods/lcm.yaml @@ -30,13 +30,17 @@ spec: labels: app: lcm spec: + securityContext: + runAsUser: 1000 + runAsGroup: 1000 + fsGroup: 1000 initContainers: - name: kafka-ro-mongo-test image: alpine:latest command: ["sh", "-c", "until (nc -zvw1 kafka 9092 && nc -zvw1 ro 9090 && nc -zvw1 mongodb-k8s 27017 ); do sleep 3; done; exit 0"] containers: - name: lcm - image: opensourcemano/lcm:9 + image: opensourcemano/lcm:10 env: - name: OSMLCM_RO_HOST value: ro @@ -54,16 +58,12 @@ spec: value: mongodb://mongodb-k8s:27017/?replicaSet=rs0 envFrom: - secretRef: - name: lcm-secret + name: lcm-secret volumeMounts: - - name: osm-packages - mountPath: /app/storage - name: prometheus-config - mountPath: /etc/prometheus + mountPath: /opt/prometheus volumes: - - name: osm-packages - hostPath: - path: /var/lib/osm/osm_osm_packages/_data - name: prometheus-config hostPath: path: /var/lib/osm/prometheus +