summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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