diff --git a/clusters/cl01tl/helm/audiobookshelf/Chart.yaml b/clusters/cl01tl/helm/audiobookshelf/Chart.yaml index 1e135f4a3..8e1214afe 100644 --- a/clusters/cl01tl/helm/audiobookshelf/Chart.yaml +++ b/clusters/cl01tl/helm/audiobookshelf/Chart.yaml @@ -27,6 +27,14 @@ dependencies: alias: volsync-target-metadata version: 0.8.0 repository: oci://harbor.alexlebens.net/helm-charts + - name: volsync-target + alias: volsync-target-books + version: 0.8.0 + repository: oci://harbor.alexlebens.net/helm-charts + - name: volsync-target + alias: volsync-target-audiobooks + version: 0.8.0 + repository: oci://harbor.alexlebens.net/helm-charts icon: https://cdn.jsdelivr.net/gh/selfhst/icons/png/audiobookshelf.png # renovate: datasource=github-releases depName=advplyr/audiobookshelf appVersion: 2.32.1 diff --git a/clusters/cl01tl/helm/audiobookshelf/templates/persistent-volume-claim.yaml b/clusters/cl01tl/helm/audiobookshelf/templates/persistent-volume-claim.yaml index e81b7831b..87b6a3f43 100644 --- a/clusters/cl01tl/helm/audiobookshelf/templates/persistent-volume-claim.yaml +++ b/clusters/cl01tl/helm/audiobookshelf/templates/persistent-volume-claim.yaml @@ -1,14 +1,33 @@ apiVersion: v1 kind: PersistentVolumeClaim metadata: - name: audiobookshelf-nfs-storage + name: audiobookshelf-books-nfs-storage namespace: {{ .Release.Namespace }} labels: - app.kubernetes.io/name: audiobookshelf-nfs-storage + app.kubernetes.io/name: audiobookshelf-books-nfs-storage app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/part-of: {{ .Release.Name }} spec: - volumeName: audiobookshelf-nfs-storage + volumeName: audiobookshelf-books-nfs-storage + storageClassName: nfs-client + accessModes: + - ReadWriteMany + resources: + requests: + storage: 1Gi + +--- +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: audiobookshelf-audiobooks-nfs-storage + namespace: {{ .Release.Namespace }} + labels: + app.kubernetes.io/name: audiobookshelf-audiobooks-nfs-storage + app.kubernetes.io/instance: {{ .Release.Name }} + app.kubernetes.io/part-of: {{ .Release.Name }} +spec: + volumeName: audiobookshelf-audiobooks-nfs-storage storageClassName: nfs-client accessModes: - ReadWriteMany diff --git a/clusters/cl01tl/helm/audiobookshelf/templates/persistent-volume.yaml b/clusters/cl01tl/helm/audiobookshelf/templates/persistent-volume.yaml index d37a16e1e..64908b7b3 100644 --- a/clusters/cl01tl/helm/audiobookshelf/templates/persistent-volume.yaml +++ b/clusters/cl01tl/helm/audiobookshelf/templates/persistent-volume.yaml @@ -1,10 +1,10 @@ apiVersion: v1 kind: PersistentVolume metadata: - name: audiobookshelf-nfs-storage + name: audiobookshelf-books-nfs-storage namespace: {{ .Release.Namespace }} labels: - app.kubernetes.io/name: audiobookshelf-nfs-storage + app.kubernetes.io/name: audiobookshelf-books-nfs-storage app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/part-of: {{ .Release.Name }} spec: @@ -15,7 +15,32 @@ spec: accessModes: - ReadWriteMany nfs: - path: /volume2/Storage + path: /volume2/Storage/Books + server: synologybond.alexlebens.net + mountOptions: + - vers=4 + - minorversion=1 + - noac + +--- +apiVersion: v1 +kind: PersistentVolume +metadata: + name: audiobookshelf-audiobooks-nfs-storage + namespace: {{ .Release.Namespace }} + labels: + app.kubernetes.io/name: audiobookshelf-audiobooks-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/Audiobooks server: synologybond.alexlebens.net mountOptions: - vers=4 diff --git a/clusters/cl01tl/helm/audiobookshelf/values.yaml b/clusters/cl01tl/helm/audiobookshelf/values.yaml index 0655677ee..48c8a792b 100644 --- a/clusters/cl01tl/helm/audiobookshelf/values.yaml +++ b/clusters/cl01tl/helm/audiobookshelf/values.yaml @@ -114,41 +114,26 @@ audiobookshelf: main: - path: /metadata readOnly: false - audiobooks-data: - forceRename: audiobookshelf-audiobooks - storageClass: ceph-block - accessMode: ReadWriteOnce - size: 40Gi - retain: true + books: + existingClaim: audiobookshelf-books-nfs-storage advancedMounts: main: main: - - path: /mnt/Audiobooks + - path: /mnt/store/Books readOnly: false - books-data: - forceRename: audiobookshelf-books - storageClass: ceph-block - accessMode: ReadWriteOnce - size: 10Gi - retain: true + audiobooks: + existingClaim: audiobookshelf-audiobooks-nfs-storage advancedMounts: main: main: - - path: /mnt/Books + - path: /mnt/store/Audiobooks readOnly: false - podcasts-data: + podcasts: existingClaim: audiobookshelf-podcasts-nfs-storage advancedMounts: main: main: - - path: /mnt/Podcasts - readOnly: false - audiobooks: - existingClaim: audiobookshelf-nfs-storage - advancedMounts: - main: - main: - - path: /mnt/store/ + - path: /mnt/store/Podcasts readOnly: false volsync-target-config: pvcTarget: audiobookshelf-config @@ -172,31 +157,37 @@ volsync-target-metadata: external: enabled: true schedule: 4 10 * * * +volsync-target-books: + pvcTarget: audiobookshelf-books + local: + enabled: true + schedule: 14 8 * * * + restic: + copyMethod: Direct + remote: + enabled: false + schedule: 14 9 * * * + restic: + copyMethod: Direct + external: + enabled: false + schedule: 14 10 * * * + restic: + copyMethod: Direct volsync-target-audiobooks: pvcTarget: audiobookshelf-audiobooks local: enabled: true schedule: 14 8 * * * restic: - cacheCapacity: 10Gi + copyMethod: Direct remote: - enabled: true + enabled: false schedule: 14 9 * * * restic: - cacheCapacity: 10Gi + copyMethod: Direct external: - enabled: true + enabled: false 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 * * * + copyMethod: Direct diff --git a/clusters/cl01tl/helm/booklore/templates/replication-destination.yaml b/clusters/cl01tl/helm/booklore/templates/replication-destination.yaml deleted file mode 100644 index 5b70c0281..000000000 --- a/clusters/cl01tl/helm/booklore/templates/replication-destination.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: volsync.backube/v1alpha1 -kind: ReplicationDestination -metadata: - name: booklore-data-replication-destination - namespace: {{ .Release.Namespace }} - labels: - app.kubernetes.io/name: booklore-data-replication-destination - app.kubernetes.io/instance: {{ .Release.Name }} - app.kubernetes.io/part-of: {{ .Release.Name }} -spec: - rsyncTLS: - copyMethod: Direct - accessModes: ["ReadWriteMany"] - destinationPVC: booklore-books-nfs-storage - keySecret: booklore-data-replication-secret diff --git a/clusters/cl01tl/helm/booklore/templates/replication-source.yaml b/clusters/cl01tl/helm/booklore/templates/replication-source.yaml deleted file mode 100644 index b14fcfbb6..000000000 --- a/clusters/cl01tl/helm/booklore/templates/replication-source.yaml +++ /dev/null @@ -1,17 +0,0 @@ -apiVersion: volsync.backube/v1alpha1 -kind: ReplicationSource -metadata: - name: booklore-data-replication-source - namespace: {{ .Release.Namespace }} - labels: - app.kubernetes.io/name: booklore-data-replication-source - app.kubernetes.io/instance: {{ .Release.Name }} - app.kubernetes.io/part-of: {{ .Release.Name }} -spec: - sourcePVC: booklore-data - trigger: - schedule: "0 0 * * *" - rsyncTLS: - keySecret: booklore-data-replication-secret - address: volsync-rsync-tls-dst-booklore-data-replication-destination - copyMethod: Snapshot