-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathstatefulset.yml
69 lines (69 loc) · 1.46 KB
/
statefulset.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
---
apiVersion: "apps/v1"
kind: StatefulSet
metadata:
name: bitwarden
labels:
app: bitwarden
spec:
serviceName: bitwarden
replicas: 1
selector:
matchLabels:
app: bitwarden
updateStrategy:
type: RollingUpdate
template:
metadata:
labels:
app: bitwarden
spec:
serviceAccountName: bitwarden
securityContext:
fsGroup: 33
runAsUser: 33
containers:
- image: vaultwarden/server:latest
imagePullPolicy: IfNotPresent
name: bitwarden
envFrom:
- configMapRef:
name: bitwarden
env:
- name: SMTP_USERNAME
valueFrom:
secretKeyRef:
name: bitwarden-smtp
key: emailUser
- name: SMTP_PASSWORD
valueFrom:
secretKeyRef:
name: bitwarden-smtp
key: emailPassword
ports:
- containerPort: 8080
name: http
protocol: TCP
- containerPort: 3012
name: websocket
protocol: TCP
volumeMounts:
- mountPath: /data
name: data
resources:
limits:
cpu: 300m
memory: 1Gi
requests:
cpu: 50m
memory: 256Mi
volumeClaimTemplates:
- metadata:
name: data
spec:
accessModes:
- "ReadWriteOnce"
resources:
requests:
storage: "15Gi"
storageClassName: default