blob: 6e00e50059c53b1c0252dc4fc5be5ec0cbe3c78f (
plain) (
blame)
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
|
apiVersion: apps/v1
kind: Deployment
metadata:
name: vaultwarden
labels:
app: vaultwarden
spec:
replicas: 1
selector:
matchLabels:
app: vaultwarden
template:
metadata:
labels:
app: vaultwarden
spec:
containers:
- name: vaultwarden
image: vaultwarden/server:1.23.1
ports:
- containerPort: 80
volumeMounts:
- name: vaultwarden-data
mountPath: /data/
volumes:
- name: vaultwarden-data
persistentVolumeClaim:
claimName: vaultwarden-data
---
apiVersion: v1
kind: Service
metadata:
name: vaultwarden-service
spec:
selector:
app: vaultwarden
type: LoadBalancer
ports:
- protocol: TCP
name: "vaultwarden-80"
port: 27080
targetPort: 80
nodePort: 31180
|