summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Wong <stephen.kf.wong@gmail.com>2019-10-07 08:47:28 +0000
committerGerrit Code Review <gerrit@opnfv.org>2019-10-07 08:47:28 +0000
commit1d6fc5f764fc497259b06c298b8f9eaa9b3c95e6 (patch)
treeda984cfbccd78acdea90bd1a98432d55285c331b
parentc006aa1696ee3543c9f52e3ecde7321b51a729f0 (diff)
parent92c5b6c103aa619d26b353f2b2b92a13b09a4939 (diff)
Merge "Add mongo.yaml for correlation engine"HEADmaster
-rw-r--r--clover/clovisor/libclovisor/mongo.yaml41
1 files changed, 41 insertions, 0 deletions
diff --git a/clover/clovisor/libclovisor/mongo.yaml b/clover/clovisor/libclovisor/mongo.yaml
new file mode 100644
index 0000000..5dea26e
--- /dev/null
+++ b/clover/clovisor/libclovisor/mongo.yaml
@@ -0,0 +1,41 @@
+apiVersion: v1
+kind: ReplicationController
+metadata:
+ labels:
+ name: mongo
+ name: mongo-controller
+ namespace: clovisor
+spec:
+ replicas: 1
+ template:
+ metadata:
+ labels:
+ name: mongo
+ spec:
+ containers:
+ - image: mongo
+ name: mongo
+ ports:
+ - name: mongo
+ containerPort: 27017
+ hostPort: 27017
+ volumeMounts:
+ - name: mongo-storage
+ mountPath: /data/db
+ volumes:
+ - name: mongo-storage
+ emptyDir: {}
+---
+apiVersion: v1
+kind: Service
+metadata:
+ labels:
+ name: mongo
+ name: mongo
+ namespace: clovisor
+spec:
+ ports:
+ - port: 27017
+ targetPort: 27017
+ selector:
+ name: mongo