diff options
author | Stephen Wong <stephen.kf.wong@gmail.com> | 2019-10-07 08:43:55 +0000 |
---|---|---|
committer | Stephen Wong <stephen.kf.wong@gmail.com> | 2019-10-07 08:43:55 +0000 |
commit | 92c5b6c103aa619d26b353f2b2b92a13b09a4939 (patch) | |
tree | 92c7857ec562e431feb80d904974967e827d8ea3 | |
parent | 2d69a23656c3702750c3e8d1b71de32adf5121b0 (diff) |
Add mongo.yaml for correlation engine
Change-Id: I2bdf3c2bff5df400b143699645d015a40d259f0d
Signed-off-by: Stephen Wong <stephen.kf.wong@gmail.com>
-rw-r--r-- | clover/clovisor/libclovisor/mongo.yaml | 41 |
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 |