ceph-csi/vendor/k8s.io/kubernetes/examples/nodesjs-mongodb/mongo-controller.yaml

28 lines
588 B
YAML
Raw Normal View History

2018-01-09 18:57:14 +00:00
apiVersion: v1
kind: ReplicationController
metadata:
labels:
name: mongo
name: mongo-controller
spec:
replicas: 1
template:
metadata:
labels:
name: mongo
spec:
containers:
- image: mongo
name: mongo
ports:
- name: mongo
containerPort: 27017
hostPort: 27017
volumeMounts:
- name: mongo-persistent-storage
mountPath: /data/db
volumes:
- name: mongo-persistent-storage
gcePersistentDisk:
pdName: mongo-disk
fsType: ext4