-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrendered.yaml
115 lines (115 loc) · 2.33 KB
/
rendered.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
apiVersion: v1
data:
mongodb-root-password: VjFRczNXbTdNaA==
kind: Secret
metadata:
labels:
app: mongodb
release: mongodb
name: mongodb
type: Opaque
---
apiVersion: v1
kind: Service
metadata:
labels:
app: mongodb
release: mongodb
name: mongodb
spec:
ports:
- name: mongodb
port: 27017
targetPort: mongodb
selector:
app: mongodb
release: mongodb
type: ClusterIP
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
app: mongodb
release: mongodb
name: mongodb
spec:
selector:
matchLabels:
app: mongodb
release: mongodb
template:
metadata:
labels:
app: mongodb
chart: mongodb-5.5.0
release: mongodb
spec:
containers:
- env:
- name: MONGODB_ROOT_PASSWORD
valueFrom:
secretKeyRef:
key: mongodb-root-password
name: mongodb
- name: MONGODB_SYSTEM_LOG_VERBOSITY
value: "0"
- name: MONGODB_DISABLE_SYSTEM_LOG
value: "no"
- name: MONGODB_ENABLE_IPV6
value: "yes"
image: docker.io/bitnami/mongodb:4.0.6
imagePullPolicy: Always
livenessProbe:
exec:
command:
- mongo
- --eval
- db.adminCommand('ping')
failureThreshold: 6
initialDelaySeconds: 30
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 5
name: mongodb
ports:
- containerPort: 27017
name: mongodb
readinessProbe:
exec:
command:
- mongo
- --eval
- db.adminCommand('ping')
failureThreshold: 6
initialDelaySeconds: 5
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 5
resources: {}
securityContext:
runAsNonRoot: true
runAsUser: 1001
volumeMounts:
- mountPath: /bitnami/mongodb
name: data
securityContext:
fsGroup: 1001
volumes:
- name: data
persistentVolumeClaim:
claimName: mongodb
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
labels:
app: mongodb
release: mongodb
name: mongodb
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 8Gi