From bfef6cdfe26ae5c09c469859d22bf39fc781d79d Mon Sep 17 00:00:00 2001 From: unkin-agent Date: Thu, 26 Nov 2026 23:59:35 +1100 Subject: [PATCH 1/3] Scale cheeztv and fafflix to zero replicas --- apps/base/cheeztv/statefulset.yaml | 2 +- apps/base/fafflix/statefulset.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/base/cheeztv/statefulset.yaml b/apps/base/cheeztv/statefulset.yaml index 8a3fc99..106c10c 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: 2 + replicas: 0 serviceName: cheeztv podManagementPolicy: Parallel updateStrategy: diff --git a/apps/base/fafflix/statefulset.yaml b/apps/base/fafflix/statefulset.yaml index 12b9007..2a59f11 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: 2 + replicas: 0 serviceName: fafflix podManagementPolicy: Parallel updateStrategy: -- 2.47.3 From 775a47dbe6afd78b8bcb2d30539a9e3d52a7ad85 Mon Sep 17 00:00:00 2001 From: unkin-agent Date: Fri, 27 Nov 2026 00:00:00 +1100 Subject: [PATCH 2/3] Remove cheeztv and fafflix config and transcode PVCs --- apps/base/cheeztv/kustomization.yaml | 2 -- apps/base/cheeztv/pvc-config.yaml | 17 ----------------- apps/base/cheeztv/pvc-transcode.yaml | 23 ----------------------- apps/base/fafflix/kustomization.yaml | 2 -- apps/base/fafflix/pvc-config.yaml | 17 ----------------- apps/base/fafflix/pvc-transcode.yaml | 23 ----------------------- 6 files changed, 84 deletions(-) delete mode 100644 apps/base/cheeztv/pvc-config.yaml delete mode 100644 apps/base/cheeztv/pvc-transcode.yaml delete mode 100644 apps/base/fafflix/pvc-config.yaml delete mode 100644 apps/base/fafflix/pvc-transcode.yaml diff --git a/apps/base/cheeztv/kustomization.yaml b/apps/base/cheeztv/kustomization.yaml index 3c953ff..906e083 100644 --- a/apps/base/cheeztv/kustomization.yaml +++ b/apps/base/cheeztv/kustomization.yaml @@ -11,8 +11,6 @@ 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 deleted file mode 100644 index 7b2e4bb..0000000 --- a/apps/base/cheeztv/pvc-config.yaml +++ /dev/null @@ -1,17 +0,0 @@ ---- -# 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, raid5-delete). -apiVersion: v1 -kind: PersistentVolumeClaim -metadata: - name: cheeztv-config - namespace: cheeztv -spec: - accessModes: - - ReadWriteMany - resources: - requests: - storage: 20Gi - storageClassName: cephfs-raid5-delete - volumeMode: Filesystem diff --git a/apps/base/cheeztv/pvc-transcode.yaml b/apps/base/cheeztv/pvc-transcode.yaml deleted file mode 100644 index bb47d13..0000000 --- a/apps/base/cheeztv/pvc-transcode.yaml +++ /dev/null @@ -1,23 +0,0 @@ ---- -# 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); raid5 avoids the raid6 -# double-parity write penalty on the many small HLS segment writes. -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-raid5-delete - volumeMode: Filesystem diff --git a/apps/base/fafflix/kustomization.yaml b/apps/base/fafflix/kustomization.yaml index 3c953ff..906e083 100644 --- a/apps/base/fafflix/kustomization.yaml +++ b/apps/base/fafflix/kustomization.yaml @@ -11,8 +11,6 @@ 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 deleted file mode 100644 index e8cf284..0000000 --- a/apps/base/fafflix/pvc-config.yaml +++ /dev/null @@ -1,17 +0,0 @@ ---- -# 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, raid5-delete). -apiVersion: v1 -kind: PersistentVolumeClaim -metadata: - name: fafflix-config - namespace: fafflix -spec: - accessModes: - - ReadWriteMany - resources: - requests: - storage: 20Gi - storageClassName: cephfs-raid5-delete - volumeMode: Filesystem diff --git a/apps/base/fafflix/pvc-transcode.yaml b/apps/base/fafflix/pvc-transcode.yaml deleted file mode 100644 index 809f19e..0000000 --- a/apps/base/fafflix/pvc-transcode.yaml +++ /dev/null @@ -1,23 +0,0 @@ ---- -# 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); raid5 avoids the raid6 -# double-parity write penalty on the many small HLS segment writes. -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-raid5-delete - volumeMode: Filesystem -- 2.47.3 From ad8d40cd5934f583225d59f2b4e95b2e848cca41 Mon Sep 17 00:00:00 2001 From: unkin-agent Date: Fri, 27 Nov 2026 00:00:27 +1100 Subject: [PATCH 3/3] 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: -- 2.47.3