From 92c5b6c103aa619d26b353f2b2b92a13b09a4939 Mon Sep 17 00:00:00 2001 From: Stephen Wong Date: Mon, 7 Oct 2019 08:43:55 +0000 Subject: Add mongo.yaml for correlation engine Change-Id: I2bdf3c2bff5df400b143699645d015a40d259f0d Signed-off-by: Stephen Wong --- clover/clovisor/libclovisor/mongo.yaml | 41 ++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 clover/clovisor/libclovisor/mongo.yaml 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 -- cgit 1.2.3-korg