Move Vaultwarden local storage and workload to music
Update Kubernetes Services Wiki / Generate and Update K8s Wiki (push) Successful in 1m53s
Update Kubernetes Services Wiki / Generate and Update K8s Wiki (push) Successful in 1m53s
This commit is contained in:
1 parent
d1d28776cd
commit
46bc178dab
4 files changed
+36
-4
No files matched your search
@@ -16,6 +16,8 @@ spec:
|
|||||||
labels:
|
labels:
|
||||||
app: vaultwarden
|
app: vaultwarden
|
||||||
spec:
|
spec:
|
||||||
|
nodeSelector:
|
||||||
|
kubernetes.io/hostname: music
|
||||||
containers:
|
containers:
|
||||||
- name: vaultwarden
|
- name: vaultwarden
|
||||||
image: vaultwarden/server:1.37.3
|
image: vaultwarden/server:1.37.3
|
||||||
@@ -74,4 +76,4 @@ spec:
|
|||||||
volumes:
|
volumes:
|
||||||
- name: data
|
- name: data
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: vaultwarden-data
|
claimName: vaultwarden-data-music
|
||||||
@@ -3,6 +3,7 @@ kind: Kustomization
|
|||||||
|
|
||||||
resources:
|
resources:
|
||||||
- secrets.yaml
|
- secrets.yaml
|
||||||
|
- storage.yaml
|
||||||
- pvc.yaml
|
- pvc.yaml
|
||||||
- deployment.yaml
|
- deployment.yaml
|
||||||
- service.yaml
|
- service.yaml
|
||||||
|
|||||||
@@ -1,12 +1,13 @@
|
|||||||
# Attachments, sends, icon cache and RSA keys live here; the database is in PostgreSQL.
|
# 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
|
apiVersion: v1
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
metadata:
|
metadata:
|
||||||
name: vaultwarden-data
|
name: vaultwarden-data-music
|
||||||
spec:
|
spec:
|
||||||
accessModes: [ReadWriteOnce]
|
accessModes: [ReadWriteOnce]
|
||||||
storageClassName: local-path
|
storageClassName: ""
|
||||||
|
volumeName: vaultwarden-data-music
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: 2Gi
|
storage: 2Gi
|
||||||
@@ -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]
|
||||||
Reference in new issue
Block a user