Prepare installer, pods and Jenkins for Rel THIRTEEN
[osm/devops.git] / installers / docker / osm_pods / mon.yaml
index 988054f..24e2004 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:8
+        image: opensourcemano/mon:13
         ports:
         - containerPort: 8662
           protocol: TCP
@@ -59,13 +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
-        volumeMounts:
-        - name: mon-storage
-          mountPath: /app/database
-      volumes:
-      - name: mon-storage
-        hostPath:
-         path: /var/lib/osm/osm_mon_db/_data