---
# Static PV exposing the legacy mediafs CephFS filesystem root for the upcoming
# mediamover tool. clusterID only selects the monitor set from the csi config;
# fsName selects the actual filesystem, so the ssd_ec clusterID still reaches
# mediafs on the same cluster. Staged with the dedicated ceph-mediafs client.
apiVersion: v1
kind: PersistentVolume
metadata:
  name: arrstack-mediafs
spec:
  capacity:
    storage: 10Ti
  accessModes:
    - ReadWriteMany
  persistentVolumeReclaimPolicy: Retain
  storageClassName: ""
  volumeMode: Filesystem
  claimRef:
    namespace: arrstack
    name: mediafs
  csi:
    driver: cephfs.csi.ceph.com
    volumeHandle: arrstack-mediafs-static
    nodeStageSecretRef:
      name: ceph-mediafs-secret
      namespace: csi-cephfs
    volumeAttributes:
      staticVolume: "true"
      clusterID: cephfs_csi_ssd_ec_4_1
      fsName: mediafs
      rootPath: /
