Add vaultwarden app (migrated from docker on 10.10.0.5)

- Pinned to 1.37.0 so the migration is not also an upgrade
- ADMIN_TOKEN rotated to an Argon2id PHC string, stored as a SealedSecret.
  The old token was plaintext AND set in config.json, which overrides env --
  both that key and signups_allowed were removed during migration so the
  Deployment is the source of truth. signups had been silently enabled.
- /admin keeps Authentik forward-auth at priority 1000 (Traefik's default
  priority is rule length; the old docker router used 10 vs an implicit 24
  and was therefore bypassed).
- vault.aleshym.co stays private: absent from the k3s public catchall and
  from the Docker Traefik wan entrypoint.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
Claude
2026-07-31 12:44:05 -07:00
parent b7605de60c
commit 1261e238aa
9 changed files with 206 additions and 0 deletions
@@ -0,0 +1,64 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: vaultwarden
namespace: vaultwarden
spec:
replicas: 1
strategy:
# SQLite on a RWO volume - never run two pods against it.
type: Recreate
selector:
matchLabels:
app: vaultwarden
template:
metadata:
labels:
app: vaultwarden
spec:
containers:
- name: vaultwarden
# Pinned deliberately: this migration should not also be an upgrade.
image: vaultwarden/server:1.37.0
ports:
- name: http
containerPort: 80
env:
- name: DOMAIN
value: https://vault.aleshym.co
# config.json used to override these; both keys were removed from it
# during the migration so the Deployment is the source of truth.
- name: SIGNUPS_ALLOWED
value: "false"
- name: INVITATIONS_ALLOWED
value: "false"
- name: ADMIN_TOKEN
valueFrom:
secretKeyRef:
name: vaultwarden-secret
key: ADMIN_TOKEN
volumeMounts:
- name: data
mountPath: /data
livenessProbe:
httpGet:
path: /alive
port: http
initialDelaySeconds: 20
periodSeconds: 30
readinessProbe:
httpGet:
path: /alive
port: http
initialDelaySeconds: 5
periodSeconds: 10
resources:
requests:
cpu: 25m
memory: 96Mi
limits:
memory: 512Mi
volumes:
- name: data
persistentVolumeClaim:
claimName: vaultwarden-data