2023-03-19 18:16:42 +00:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: vaultwarden
|
|
|
|
namespace: vaultwarden
|
|
|
|
spec:
|
2024-01-15 07:26:56 +00:00
|
|
|
replicas: 2
|
2023-03-19 18:16:42 +00:00
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: vaultwarden
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: vaultwarden
|
|
|
|
spec:
|
|
|
|
hostname: vaultwarden
|
|
|
|
subdomain: vaultwarden
|
|
|
|
containers:
|
|
|
|
- name: vaultwarden
|
|
|
|
image: vaultwarden/server
|
|
|
|
ports:
|
|
|
|
- containerPort: 80
|
|
|
|
env:
|
|
|
|
- name: DB_PASSWORD
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
2023-07-26 11:51:47 +00:00
|
|
|
name: vaultwarden-db
|
2023-03-19 18:16:42 +00:00
|
|
|
key: password
|
|
|
|
- name: SIGNUPS_ALLOWED
|
|
|
|
value: "true"
|
|
|
|
- name: DATABASE_URL
|
2023-07-26 11:51:47 +00:00
|
|
|
value: "postgresql://vaultwarden:$(DB_PASSWORD)@vaultwarden-db-rw.vaultwarden.svc.cluster.local:5432/vaultwarden"
|
2023-03-19 20:45:11 +00:00
|
|
|
- name: ADMIN_TOKEN
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
2023-04-02 15:21:48 +00:00
|
|
|
name: vaultwarden-admin
|
2023-03-19 20:45:11 +00:00
|
|
|
key: token
|
2023-03-19 18:16:42 +00:00
|
|
|
volumes:
|
|
|
|
- name: vaultwarden-pv
|
|
|
|
hostPath:
|
|
|
|
path: "/mnt/vaultwarden"
|