From b3b4d84dbbdda075b97a9f21c70ea55112a55675 Mon Sep 17 00:00:00 2001 From: Alex Lebens Date: Thu, 12 Mar 2026 22:16:23 -0500 Subject: [PATCH] feat: add specific volumes for media --- .../templates/persistent-volume-claim.yaml | 19 ++++++ .../templates/persistent-volume.yaml | 25 ++++++++ .../cl01tl/helm/audiobookshelf/values.yaml | 58 +++++++++++++++++++ 3 files changed, 102 insertions(+) diff --git a/clusters/cl01tl/helm/audiobookshelf/templates/persistent-volume-claim.yaml b/clusters/cl01tl/helm/audiobookshelf/templates/persistent-volume-claim.yaml index cbc323850..e81b7831b 100644 --- a/clusters/cl01tl/helm/audiobookshelf/templates/persistent-volume-claim.yaml +++ b/clusters/cl01tl/helm/audiobookshelf/templates/persistent-volume-claim.yaml @@ -15,3 +15,22 @@ spec: resources: requests: storage: 1Gi + +--- +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: audiobookshelf-podcasts-nfs-storage + namespace: {{ .Release.Namespace }} + labels: + app.kubernetes.io/name: audiobookshelf-podcasts-nfs-storage + app.kubernetes.io/instance: {{ .Release.Name }} + app.kubernetes.io/part-of: {{ .Release.Name }} +spec: + volumeName: audiobookshelf-podcasts-nfs-storage + storageClassName: nfs-client + accessModes: + - ReadWriteMany + resources: + requests: + storage: 1Gi diff --git a/clusters/cl01tl/helm/audiobookshelf/templates/persistent-volume.yaml b/clusters/cl01tl/helm/audiobookshelf/templates/persistent-volume.yaml index 793addc71..d37a16e1e 100644 --- a/clusters/cl01tl/helm/audiobookshelf/templates/persistent-volume.yaml +++ b/clusters/cl01tl/helm/audiobookshelf/templates/persistent-volume.yaml @@ -21,3 +21,28 @@ spec: - vers=4 - minorversion=1 - noac + +--- +apiVersion: v1 +kind: PersistentVolume +metadata: + name: audiobookshelf-podcasts-nfs-storage + namespace: {{ .Release.Namespace }} + labels: + app.kubernetes.io/name: audiobookshelf-podcasts-nfs-storage + app.kubernetes.io/instance: {{ .Release.Name }} + app.kubernetes.io/part-of: {{ .Release.Name }} +spec: + persistentVolumeReclaimPolicy: Retain + storageClassName: nfs-client + capacity: + storage: 1Gi + accessModes: + - ReadWriteMany + nfs: + path: /volume2/Storage/Podcasts + server: synologybond.alexlebens.net + mountOptions: + - vers=4 + - minorversion=1 + - noac diff --git a/clusters/cl01tl/helm/audiobookshelf/values.yaml b/clusters/cl01tl/helm/audiobookshelf/values.yaml index 993db96d1..30236d8ec 100644 --- a/clusters/cl01tl/helm/audiobookshelf/values.yaml +++ b/clusters/cl01tl/helm/audiobookshelf/values.yaml @@ -114,6 +114,36 @@ audiobookshelf: main: - path: /metadata readOnly: false + audiobooks-data: + forceRename: audiobookshelf-audiobooks + storageClass: ceph-block + accessMode: ReadWriteOnce + size: 40Gi + retain: true + advancedMounts: + main: + main: + - path: /mnt/Audiobooks + readOnly: false + books-data: + forceRename: audiobookshelf-books + storageClass: ceph-block + accessMode: ReadWriteOnce + size: 10Gi + retain: true + advancedMounts: + main: + main: + - path: /mnt/Books + readOnly: false + podcasts-data: + forceRename: audiobookshelf-podcasts + existingClaim: audiobookshelf-podcasts-nfs-storage + advancedMounts: + main: + main: + - path: /mnt/Podcasts + readOnly: false audiobooks: existingClaim: audiobookshelf-nfs-storage advancedMounts: @@ -143,3 +173,31 @@ volsync-target-metadata: external: enabled: true schedule: 4 10 * * * +volsync-target-audiobooks: + pvcTarget: audiobookshelf-audiobooks + local: + enabled: true + schedule: 14 8 * * * + restic: + cacheCapacity: 10Gi + remote: + enabled: true + schedule: 14 9 * * * + restic: + cacheCapacity: 10Gi + external: + enabled: true + schedule: 14 10 * * * + restic: + cacheCapacity: 10Gi +volsync-target-books: + pvcTarget: audiobookshelf-books + local: + enabled: true + schedule: 14 8 * * * + remote: + enabled: true + schedule: 14 9 * * * + external: + enabled: true + schedule: 14 10 * * *