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
/
nbi.yaml
diff --git
a/installers/docker/osm_pods/nbi.yaml
b/installers/docker/osm_pods/nbi.yaml
index
7fc6595
..
7b3616e
100644
(file)
--- a/
installers/docker/osm_pods/nbi.yaml
+++ b/
installers/docker/osm_pods/nbi.yaml
@@
-44,13
+44,17
@@
spec:
labels:
app: nbi
spec:
labels:
app: nbi
spec:
+ securityContext:
+ runAsUser: 1000
+ runAsGroup: 1000
+ fsGroup: 1000
initContainers:
- name: kafka-mongo-test
image: alpine:latest
command: ["sh", "-c", "until (nc -zvw1 kafka 9092 && nc -zvw1 mongodb-k8s 27017); do sleep 3; done; exit 0"]
containers:
- name: nbi
initContainers:
- name: kafka-mongo-test
image: alpine:latest
command: ["sh", "-c", "until (nc -zvw1 kafka 9092 && nc -zvw1 mongodb-k8s 27017); do sleep 3; done; exit 0"]
containers:
- name: nbi
- image: opensourcemano/nbi:
8
+ image: opensourcemano/nbi:
10
ports:
- containerPort: 9999
protocol: TCP
ports:
- containerPort: 9999
protocol: TCP
@@
-59,13
+63,14
@@
spec:
value: mongodb://mongodb-k8s:27017/?replicaSet=rs0
- name: OSMNBI_MESSAGE_HOST
value: kafka
value: mongodb://mongodb-k8s:27017/?replicaSet=rs0
- name: OSMNBI_MESSAGE_HOST
value: kafka
+ - name: OSMNBI_STORAGE_DRIVER
+ value: mongo
+ - name: OSMNBI_STORAGE_PATH
+ value: /app/storage
+ - name: OSMNBI_STORAGE_COLLECTION
+ value: files
+ - name: OSMNBI_STORAGE_URI
+ value: mongodb://mongodb-k8s:27017/?replicaSet=rs0
envFrom:
- secretRef:
name: nbi-secret
envFrom:
- secretRef:
name: nbi-secret
- volumeMounts:
- - name: osm-packages
- mountPath: /app/storage
- volumes:
- - name: osm-packages
- hostPath:
- path: /var/lib/osm/osm_osm_packages/_data