apps/vaultwarden/resources/deployment.yaml
Peter Kurfer 30974b2f38
All checks were successful
Renovate / renovate (push) Successful in 31s
feat: deploy vaultwarden and s3-csi
2023-11-21 22:32:09 +01:00

41 lines
982 B
YAML

---
apiVersion: apps/v1
kind: Deployment
metadata:
name: vaultwarden
spec:
selector:
matchLabels:
app.kubernetes.io/name: vaultwarden
app.kubernetes.io/part-of: vaultwarden
template:
metadata:
labels:
app.kubernetes.io/name: vaultwarden
app.kubernetes.io/part-of: vaultwarden
spec:
containers:
- name: vaultwarden
image: vaultwarden
envFrom:
- secretRef:
name: vaultwarden-api-config
env:
- name: DATABASE_URL
valueFrom:
secretKeyRef:
name: default-cluster-pguser-vaultwarden
key: uri
resources:
limits:
memory: "128Mi"
cpu: "500m"
ports:
- containerPort: 8080
volumeMounts:
- name: data
mountPath: /data
volumes:
- name: data
persistentVolumeClaim:
claimName: vaultwarden-data