28 lines
588 B
YAML
28 lines
588 B
YAML
|
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
|