X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=installers%2Fdocker%2Fosm_pods%2Flcm.yaml;h=5f34c0d80dd1c52b85ad6a3773eb6650e22070a4;hb=e259b321ba575dee95274b3841d5063e54f75a97;hp=ccaa57a9c98eab82bca296ad6285e9611a4eb4fd;hpb=1425183b02d34b016e83d516087b2849c44c93ea;p=osm%2Fdevops.git diff --git a/installers/docker/osm_pods/lcm.yaml b/installers/docker/osm_pods/lcm.yaml index ccaa57a9..5f34c0d8 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:8 + image: opensourcemano/lcm:10 env: - name: OSMLCM_RO_HOST value: ro @@ -54,16 +58,4 @@ spec: value: mongodb://mongodb-k8s:27017/?replicaSet=rs0 envFrom: - secretRef: - name: lcm-secret - volumeMounts: - - name: osm-packages - mountPath: /app/storage - - name: prometheus-config - mountPath: /etc/prometheus - volumes: - - name: osm-packages - hostPath: - path: /var/lib/osm/osm_osm_packages/_data - - name: prometheus-config - hostPath: - path: /var/lib/osm/prometheus + name: lcm-secret