From fc36d7104bb1ca47c7bbd013918890316ab6fc0a Mon Sep 17 00:00:00 2001 From: Tanguy Herbron Date: Sat, 24 Sep 2022 01:04:58 +0200 Subject: [PATCH] feat(vaultwarden): Configure local files When loading Vaultwarden on the cluster, it has been judged to be better to have DB files locally, on top of the longhorn backup. This makes data persistency much easier on the long term. --- vaultwarden/{pvc.yaml => backup-pvc.yaml} | 0 vaultwarden/deployment.yaml | 8 +++++++- 2 files changed, 7 insertions(+), 1 deletion(-) rename vaultwarden/{pvc.yaml => backup-pvc.yaml} (100%) diff --git a/vaultwarden/pvc.yaml b/vaultwarden/backup-pvc.yaml similarity index 100% rename from vaultwarden/pvc.yaml rename to vaultwarden/backup-pvc.yaml diff --git a/vaultwarden/deployment.yaml b/vaultwarden/deployment.yaml index 52c26fb..22f6773 100644 --- a/vaultwarden/deployment.yaml +++ b/vaultwarden/deployment.yaml @@ -32,4 +32,10 @@ spec: value: "example" - name: MARIADB_DATABASE value: "vaultwarden" - + volumeMounts: + - mountPath: "/var/lib/mysql" + name: vaultwarden-pv + volumes: + - name: vaultwarden-pv + hostPath: + path: "/mnt/vaultwarden"