forked from pablokbs/peladonerd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
04-mongo-full.yaml
62 lines (62 loc) · 1.45 KB
/
04-mongo-full.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
apiVersion: apps/v1
kind: StatefulSet
metadata:
creationTimestamp: null
labels:
app: mongo
name: mongo
spec:
podManagementPolicy: OrderedReady
replicas: 3
revisionHistoryLimit: 10
selector:
matchLabels:
app: mongo
serviceName: mongo
template:
metadata:
creationTimestamp: null
labels:
app: mongo
spec:
containers:
- command:
- mongod
- --replSet
- rs0
image: mongo:3.4.1
imagePullPolicy: IfNotPresent
name: mongodb
ports:
- containerPort: 27017
name: web
protocol: TCP
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
- command:
- bash
- /config/init.sh
image: mongo:3.4.1
imagePullPolicy: IfNotPresent
name: init-mongo
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /config
name: config
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
volumes:
- configMap:
defaultMode: 420
name: mongo-init
name: config
updateStrategy:
type: OnDelete
status:
replicas: 0