Fix bug 1559 to update installers and manifests for Release TEN
[osm/devops.git] / installers / docker / osm_pods / mon.yaml
index 4dd10d4..37fcdcb 100644 (file)
@@ -47,10 +47,10 @@ spec:
       initContainers:
       - name: kafka-mongo-test
         image: alpine:latest
-        command: ["sh", "-c", "until (nc -zvw1 kafka 9092 && nc -zvw1 mongo 27017); do sleep 3; done; exit 0"]
+        command: ["sh", "-c", "until (nc -zvw1 kafka 9092 && nc -zvw1 mongodb-k8s 27017); do sleep 3; done; exit 0"]
       containers:
       - name: mon
-        image: opensourcemano/mon:7
+        image: opensourcemano/mon:10
         ports:
         - containerPort: 8662
           protocol: TCP
@@ -59,6 +59,8 @@ spec:
           value: kafka
         - name: OSMMON_MESSAGE_PORT
           value: "9092"
+        - name: OSMMON_DATABASE_URI
+          value: mongodb://mongodb-k8s:27017/?replicaSet=rs0
         envFrom:
         - secretRef:
            name: mon-secret