Move Vaultwarden local storage and workload to music
Update Kubernetes Services Wiki / Generate and Update K8s Wiki (push) Successful in 1m53s

This commit is contained in:
Aleksandr Bogomiakov committed 2026-10-11 13:00:46 +01:00
1 parent d1d28776cd
commit 46bc178dab
4 files changed
+36 -4

No files matched your search

+3 -1
View File
@@ -16,6 +16,8 @@ spec:
labels:
app: vaultwarden
spec:
nodeSelector:
kubernetes.io/hostname: music
containers:
- name: vaultwarden
image: vaultwarden/server:1.37.3
@@ -74,4 +76,4 @@ spec:
volumes:
- name: data
persistentVolumeClaim:
claimName: vaultwarden-data
claimName: vaultwarden-data-music
@@ -3,6 +3,7 @@ kind: Kustomization
resources:
- secrets.yaml
- storage.yaml
- pvc.yaml
- deployment.yaml
- service.yaml
+4 -3
View File
@@ -1,12 +1,13 @@
# Attachments, sends, icon cache and RSA keys live here; the database is in PostgreSQL.
# A local-path volume is bound to one node: the pod stays on the node it first ran on.
# Bind explicitly to the retained local volume on music (see storage.yaml).
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: vaultwarden-data
name: vaultwarden-data-music
spec:
accessModes: [ReadWriteOnce]
storageClassName: local-path
storageClassName: ""
volumeName: vaultwarden-data-music
resources:
requests:
storage: 2Gi
+28
View File
@@ -0,0 +1,28 @@
# The directory must contain Vaultwarden's migrated /data before the pod starts.
# Retain the files when the claim or Argo CD application is removed.
apiVersion: v1
kind: PersistentVolume
metadata:
name: vaultwarden-data-music
annotations:
argocd.argoproj.io/sync-wave: "-1"
argocd.argoproj.io/sync-options: Prune=false
spec:
capacity:
storage: 2Gi
volumeMode: Filesystem
accessModes: [ReadWriteOnce]
persistentVolumeReclaimPolicy: Retain
storageClassName: ""
claimRef:
namespace: vaultwarden
name: vaultwarden-data-music
local:
path: /data/k8s/vaultwarden
nodeAffinity:
required:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values: [music]