Files
k3s/apps/vaultwarden/manifests/vaultwarden-deployment.yaml
Timmy 4b7a1f2bcf fix: add nginx sidecar for Bitwarden well-known endpoint
This fixes iOS app connection issues by properly responding to
/.well-known/bitwarden/ endpoint which iOS clients use to identify
the server.
2026-04-02 15:24:27 +08:00

92 lines
2.3 KiB
YAML

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.32.7-alpine
resources:
requests:
memory: "128Mi"
cpu: "100m"
limits:
memory: "512Mi"
cpu: "500m"
ports:
- containerPort: 3000
env:
- name: WEBSOCKET_ENABLED
value: "true"
- name: DOMAIN
value: "https://vaultwarden.lotimmy.com"
- name: ADMIN_TOKEN
valueFrom:
secretKeyRef:
name: vaultwarden-secret
key: ADMIN_TOKEN
# Health check
livenessProbe:
httpGet:
path: /alive
port: 3000
initialDelaySeconds: 30
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 3
readinessProbe:
httpGet:
path: /alive
port: 3000
initialDelaySeconds: 5
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 3
volumeMounts:
- mountPath: "/data"
name: data-vol
- name: nginx-well-known
image: nginx:alpine
resources:
requests:
memory: "32Mi"
cpu: "50m"
limits:
memory: "64Mi"
cpu: "100m"
ports:
- containerPort: 8080
volumeMounts:
- mountPath: "/etc/nginx/conf.d"
name: nginx-config
livenessProbe:
httpGet:
path: /alive
port: 8080
initialDelaySeconds: 5
periodSeconds: 10
readinessProbe:
httpGet:
path: /alive
port: 8080
initialDelaySeconds: 3
periodSeconds: 10
volumes:
- name: data-vol
persistentVolumeClaim:
claimName: vaultwarden-pvc
- name: nginx-config
configMap:
name: nginx-well-known-config