---
# Static PV for the shared TV CephFS subvolume. Same rootPath as arrstack's
# TV PV so sonarr writes and fafflix reads the identical library tree; each
# namespace gets its own PV (unique name + volumeHandle) pinned by claimRef.
apiVersion: v1
kind: PersistentVolume
metadata:
  name: fafflix-media-tv
spec:
  capacity:
    storage: 1Ti
  accessModes:
    - ReadWriteMany
  persistentVolumeReclaimPolicy: Retain
  storageClassName: ""
  volumeMode: Filesystem
  claimRef:
    namespace: fafflix
    name: fafflix-media-tv
  csi:
    driver: cephfs.csi.ceph.com
    volumeHandle: fafflix-media-tv-static
    nodeStageSecretRef:
      name: csi-cephfs-secret
      namespace: csi-cephfs
    volumeAttributes:
      staticVolume: "true"
      clusterID: cephfs_csi_ssd_ec_4_1
      fsName: cephfs
      rootPath: /volumes/csi_ssd_ec_4_1/media-tv/4692957d-f5df-4f72-b9c9-56e4ee6d1333
