projects
/
osm
/
devops.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Better release note check
[osm/devops.git]
/
installers
/
docker
/
osm_pods
/
lcm.yaml
diff --git
a/installers/docker/osm_pods/lcm.yaml
b/installers/docker/osm_pods/lcm.yaml
index
f69fba3
..
6832671
100644
(file)
--- a/
installers/docker/osm_pods/lcm.yaml
+++ b/
installers/docker/osm_pods/lcm.yaml
@@
-30,27
+30,40
@@
spec:
labels:
app: lcm
spec:
labels:
app: lcm
spec:
+ securityContext:
+ runAsUser: 1000
+ runAsGroup: 1000
+ fsGroup: 1000
initContainers:
- name: kafka-ro-mongo-test
image: alpine:latest
initContainers:
- name: kafka-ro-mongo-test
image: alpine:latest
- command: ["sh", "-c", "until (nc -zvw1 kafka 9092 && nc -zvw1 ro 9090 && nc -zvw1 mongo 27017 ); do sleep 3; done; exit 0"]
+ command: ["sh", "-c", "until (nc -zvw1 kafka 9092 && nc -zvw1 ro 9090 && nc -zvw1 mongo
db-k8s
27017 ); do sleep 3; done; exit 0"]
containers:
- name: lcm
containers:
- name: lcm
- image: opensourcemano/lcm:
latest
+ image: opensourcemano/lcm:
10
env:
- name: OSMLCM_RO_HOST
value: ro
env:
- name: OSMLCM_RO_HOST
value: ro
- - name: OSMLCM_DATABASE_
HOST
- value: mongo
+ - name: OSMLCM_DATABASE_
URI
+ value: mongo
db://mongodb-k8s:27017/?replicaSet=rs0
- name: OSMLCM_MESSAGE_HOST
value: kafka
- name: OSMLCM_MESSAGE_HOST
value: kafka
+ - name: OSMLCM_STORAGE_DRIVER
+ value: mongo
+ - name: OSMLCM_STORAGE_PATH
+ value: /app/storage
+ - name: OSMLCM_STORAGE_COLLECTION
+ value: files
+ - name: OSMLCM_STORAGE_URI
+ value: mongodb://mongodb-k8s:27017/?replicaSet=rs0
envFrom:
- secretRef:
envFrom:
- secretRef:
- name: lcm-secret
+
name: lcm-secret
volumeMounts:
volumeMounts:
- - name:
osm-packages
- mountPath: /
app/storage
+ - name:
prometheus-config
+ mountPath: /
opt/prometheus
volumes:
volumes:
- - name:
osm-packages
+ - name:
prometheus-config
hostPath:
hostPath:
- path: /var/lib/osm/osm_osm_packages/_data
+ path: /var/lib/osm/prometheus
+