-
Notifications
You must be signed in to change notification settings - Fork 0
/
mongo-test.yaml
79 lines (79 loc) · 1.97 KB
/
mongo-test.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
kind: StatefulSet
apiVersion: apps/v1
metadata:
name: mongodb-test
labels:
app: mongodb-test
spec:
replicas: 1
selector:
matchLabels:
app: mongodb-test
template:
metadata:
labels:
app: mongodb-test
volume.storage.kubesphere.io/uid: "0"
volume.storage.kubesphere.io/gid: "0"
ttt.volume.storage.kubesphere.io/uid: mongodb
spec:
containers:
- name: mongodb
image: 'bitnami/mongodb:4.2.4-debian-10-r0'
ports:
- name: http-27017
containerPort: 27017
protocol: TCP
resources:
limits:
cpu: '1'
memory: 1Gi
requests:
cpu: '1'
memory: 1Gi
volumeMounts:
- name: ttt
mountPath: /bitnami/ttt
- name: mongodb
mountPath: /bitnami/mongodb
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
imagePullPolicy: IfNotPresent
restartPolicy: Always
terminationGracePeriodSeconds: 30
dnsPolicy: ClusterFirst
serviceAccountName: default
securityContext: {}
schedulerName: default-scheduler
volumeClaimTemplates:
- kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: ttt
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Gi
storageClassName: local-path2
volumeMode: Filesystem
- kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: mongodb
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Gi
storageClassName: local-path
volumeMode: Filesystem
serviceName: mongodb-u8yi
podManagementPolicy: OrderedReady
updateStrategy:
type: RollingUpdate
rollingUpdate:
partition: 0
revisionHistoryLimit: 10