forked from kapicorp/kapitan-reference
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpritunl-mongo-bundle.yml
103 lines (103 loc) · 2.75 KB
/
pritunl-mongo-bundle.yml
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
apiVersion: apps/v1
kind: StatefulSet
metadata:
annotations:
manifests.kapicorp.com/generated: 'true'
labels:
app.kapicorp.dev/component: pritunl-mongo
name: pritunl-mongo
name: pritunl-mongo
namespace: pritunl
spec:
replicas: 1
selector:
matchLabels:
name: pritunl-mongo
serviceName: pritunl-mongo
template:
metadata:
labels:
name: pritunl-mongo
spec:
containers:
- env:
- name: MONGODB_DATABASE
value: pritunl
- name: MONGODB_DISABLE_SYSTEM_LOG
value: 'no'
- name: MONGODB_ENABLE_DIRECTORY_PER_DB
value: 'no'
- name: MONGODB_ENABLE_IPV6
value: 'no'
- name: MONGODB_PASSWORD
value: _3sbjfMZm3GOcfIu7c_bKdmzZuc_gO0Dgn6CfKbYMgk
- name: MONGODB_ROOT_PASSWORD
valueFrom:
secretKeyRef:
key: mongodb-root-password
name: pritunl-mongo
- name: MONGODB_SYSTEM_LOG_VERBOSITY
value: '0'
- name: MONGODB_USERNAME
value: pritunl
image: docker.io/bitnami/mongodb:4.2.6-debian-10-r23
imagePullPolicy: IfNotPresent
livenessProbe:
exec:
command:
- mongo
- --eval
- db.adminCommand('ping')
failureThreshold: 3
initialDelaySeconds: 0
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 5
name: pritunl-mongo
ports:
- containerPort: 27017
name: mongo
protocol: TCP
readinessProbe:
exec:
command:
- mongo
- --eval
- db.adminCommand('ping')
failureThreshold: 3
initialDelaySeconds: 0
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 5
securityContext:
runAsNonRoot: true
runAsUser: 1001
volumeMounts:
- mountPath: /bitnami/mongodb
name: datadir
restartPolicy: Always
securityContext:
fsGroup: 1001
serviceAccountName: pritunl-mongo
terminationGracePeriodSeconds: 30
volumes:
- name: secrets
secret:
defaultMode: 420
secretName: pritunl-mongo
updateStrategy:
rollingUpdate:
partition: 0
type: RollingUpdate
volumeClaimTemplates:
- metadata:
labels:
name: datadir
name: datadir
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Gi
storageClassName: standard