Bitwarden/manifests/deployment.yaml

42 lines
1.3 KiB
YAML
Raw Normal View History

apiVersion: apps/v1
kind: Deployment
metadata:
name: vaultwarden
namespace: vaultwarden
spec:
2024-01-15 07:26:56 +00:00
replicas: 2
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:
name: vaultwarden-db
key: password
- name: SIGNUPS_ALLOWED
value: "true"
- name: DATABASE_URL
value: "postgresql://vaultwarden:$(DB_PASSWORD)@vaultwarden-db-rw.vaultwarden.svc.cluster.local:5432/vaultwarden"
- name: ADMIN_TOKEN
valueFrom:
secretKeyRef:
name: vaultwarden-admin
key: token
volumes:
- name: vaultwarden-pv
hostPath:
path: "/mnt/vaultwarden"