Create 13-10-mongo-simple.yaml
This commit is contained in:
parent
7ecc4b1b85
commit
4a2d765792
22
13-10-mongo-simple.yaml
Normal file
22
13-10-mongo-simple.yaml
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
apiVersion: apps/v1beta1
|
||||||
|
kind: StatefulSet
|
||||||
|
metadata:
|
||||||
|
name: mongo
|
||||||
|
spec:
|
||||||
|
serviceName: "mongo"
|
||||||
|
replicas: 3
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: mongo
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: mongodb
|
||||||
|
image: mongo:3.4.1
|
||||||
|
command:
|
||||||
|
- mongod
|
||||||
|
- --replSet
|
||||||
|
- rs0
|
||||||
|
ports:
|
||||||
|
- containerPort: 27017
|
||||||
|
name: peer
|
||||||
Loading…
Reference in New Issue
Block a user