---
# Static PV for the shared MEDIASTORE CephFS subvolume. Same rootPath as
# arrstack's mediastore PV so the arrs write and cheeztv reads the identical
# library tree (cheeztv scans /cheeztv/{tvseries,movies}); each namespace gets
# its own PV (unique name + volumeHandle) pinned by claimRef.
apiVersion: v1
kind: PersistentVolume
metadata:
  name: cheeztv-mediastore
spec:
  capacity:
    storage: 10Ti
  accessModes:
    - ReadWriteMany
  persistentVolumeReclaimPolicy: Retain
  storageClassName: ""
  volumeMode: Filesystem
  claimRef:
    namespace: cheeztv
    name: cheeztv-mediastore
  csi:
    driver: cephfs.csi.ceph.com
    volumeHandle: cheeztv-mediastore-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/mediastore/a0152dac-a51b-4b95-ac5e-ecdd99bfe3f1
