From ad8d40cd5934f583225d59f2b4e95b2e848cca41 Mon Sep 17 00:00:00 2001 From: unkin-agent Date: Fri, 27 Nov 2026 00:00:27 +1100 Subject: [PATCH] Recreate Jellyfin PVCs on raid6 and restore replicas --- apps/base/arrstack/prowlarr/pvc-config.yaml | 2 +- apps/base/cheeztv/kustomization.yaml | 2 ++ apps/base/cheeztv/pvc-config.yaml | 17 ++++++++++++++++ apps/base/cheeztv/pvc-transcode.yaml | 22 +++++++++++++++++++++ apps/base/cheeztv/statefulset.yaml | 2 +- apps/base/fafflix/kustomization.yaml | 2 ++ apps/base/fafflix/pvc-config.yaml | 17 ++++++++++++++++ apps/base/fafflix/pvc-transcode.yaml | 22 +++++++++++++++++++++ apps/base/fafflix/statefulset.yaml | 2 +- 9 files changed, 85 insertions(+), 3 deletions(-) create mode 100644 apps/base/cheeztv/pvc-config.yaml create mode 100644 apps/base/cheeztv/pvc-transcode.yaml create mode 100644 apps/base/fafflix/pvc-config.yaml create mode 100644 apps/base/fafflix/pvc-transcode.yaml diff --git a/apps/base/arrstack/prowlarr/pvc-config.yaml b/apps/base/arrstack/prowlarr/pvc-config.yaml index 58f9d46..fdea228 100644 --- a/apps/base/arrstack/prowlarr/pvc-config.yaml +++ b/apps/base/arrstack/prowlarr/pvc-config.yaml @@ -13,5 +13,5 @@ spec: resources: requests: storage: 5Gi - storageClassName: cephfs-raid5-retain + storageClassName: cephfs-raid6-retain volumeMode: Filesystem diff --git a/apps/base/cheeztv/kustomization.yaml b/apps/base/cheeztv/kustomization.yaml index 906e083..3c953ff 100644 --- a/apps/base/cheeztv/kustomization.yaml +++ b/apps/base/cheeztv/kustomization.yaml @@ -11,6 +11,8 @@ resources: - vaultauth.yaml - vaultstaticsecret.yaml - schedule.yaml + - pvc-config.yaml + - pvc-transcode.yaml - pv-media-tv.yaml - pv-media-movies.yaml - pv-mediastore.yaml diff --git a/apps/base/cheeztv/pvc-config.yaml b/apps/base/cheeztv/pvc-config.yaml new file mode 100644 index 0000000..7402a5c --- /dev/null +++ b/apps/base/cheeztv/pvc-config.yaml @@ -0,0 +1,17 @@ +--- +# Jellyfin config: metadata images, plugins, subtitles and config XML. Shared +# ReadWriteMany across replicas (all pods read/write the same library metadata); +# the main library DB now lives in PostgreSQL, not here (on CephFS, raid6-delete). +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: cheeztv-config + namespace: cheeztv +spec: + accessModes: + - ReadWriteMany + resources: + requests: + storage: 20Gi + storageClassName: cephfs-raid6-delete + volumeMode: Filesystem diff --git a/apps/base/cheeztv/pvc-transcode.yaml b/apps/base/cheeztv/pvc-transcode.yaml new file mode 100644 index 0000000..7ed28ef --- /dev/null +++ b/apps/base/cheeztv/pvc-transcode.yaml @@ -0,0 +1,22 @@ +--- +# Shared transcode scratch. ReadWriteMany is the hard requirement for the HA +# fork: a taking-over pod must read the in-flight HLS segments written by the +# pod it replaces. Scratch data (delete reclaim). +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: cheeztv-transcode + namespace: cheeztv + annotations: + # Exclude from the cheeztv-config k8up Schedule (skipWithoutAnnotation is + # false cluster-wide, so unannotated PVCs are swept in). Transcode is RWX + # scratch — nothing to back up. + k8up.io/backup: "false" +spec: + accessModes: + - ReadWriteMany + resources: + requests: + storage: 100Gi + storageClassName: cephfs-raid6-delete + volumeMode: Filesystem diff --git a/apps/base/cheeztv/statefulset.yaml b/apps/base/cheeztv/statefulset.yaml index 106c10c..8a3fc99 100644 --- a/apps/base/cheeztv/statefulset.yaml +++ b/apps/base/cheeztv/statefulset.yaml @@ -10,7 +10,7 @@ spec: # HA: two replicas coordinate transcode session ownership through Valkey and # resume each other's HLS segments off the shared RWX transcode PVC. Stable # pod names (cheeztv-0/1) are the lease owner identity, hence StatefulSet. - replicas: 0 + replicas: 2 serviceName: cheeztv podManagementPolicy: Parallel updateStrategy: diff --git a/apps/base/fafflix/kustomization.yaml b/apps/base/fafflix/kustomization.yaml index 906e083..3c953ff 100644 --- a/apps/base/fafflix/kustomization.yaml +++ b/apps/base/fafflix/kustomization.yaml @@ -11,6 +11,8 @@ resources: - vaultauth.yaml - vaultstaticsecret.yaml - schedule.yaml + - pvc-config.yaml + - pvc-transcode.yaml - pv-media-tv.yaml - pv-media-movies.yaml - pv-mediastore.yaml diff --git a/apps/base/fafflix/pvc-config.yaml b/apps/base/fafflix/pvc-config.yaml new file mode 100644 index 0000000..ec0d266 --- /dev/null +++ b/apps/base/fafflix/pvc-config.yaml @@ -0,0 +1,17 @@ +--- +# Jellyfin config: metadata images, plugins, subtitles and config XML. Shared +# ReadWriteMany across replicas (all pods read/write the same library metadata); +# the main library DB now lives in PostgreSQL, not here (on CephFS, raid6-delete). +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: fafflix-config + namespace: fafflix +spec: + accessModes: + - ReadWriteMany + resources: + requests: + storage: 20Gi + storageClassName: cephfs-raid6-delete + volumeMode: Filesystem diff --git a/apps/base/fafflix/pvc-transcode.yaml b/apps/base/fafflix/pvc-transcode.yaml new file mode 100644 index 0000000..4feee8b --- /dev/null +++ b/apps/base/fafflix/pvc-transcode.yaml @@ -0,0 +1,22 @@ +--- +# Shared transcode scratch. ReadWriteMany is the hard requirement for the HA +# fork: a taking-over pod must read the in-flight HLS segments written by the +# pod it replaces. Scratch data (delete reclaim). +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: fafflix-transcode + namespace: fafflix + annotations: + # Exclude from the fafflix-config k8up Schedule (skipWithoutAnnotation is + # false cluster-wide, so unannotated PVCs are swept in). Transcode is RWX + # scratch — nothing to back up. + k8up.io/backup: "false" +spec: + accessModes: + - ReadWriteMany + resources: + requests: + storage: 100Gi + storageClassName: cephfs-raid6-delete + volumeMode: Filesystem diff --git a/apps/base/fafflix/statefulset.yaml b/apps/base/fafflix/statefulset.yaml index 2a59f11..12b9007 100644 --- a/apps/base/fafflix/statefulset.yaml +++ b/apps/base/fafflix/statefulset.yaml @@ -10,7 +10,7 @@ spec: # HA: two replicas coordinate transcode session ownership through Valkey and # resume each other's HLS segments off the shared RWX transcode PVC. Stable # pod names (fafflix-0/1) are the lease owner identity, hence StatefulSet. - replicas: 0 + replicas: 2 serviceName: fafflix podManagementPolicy: Parallel updateStrategy: