Create PV from existing folder on CephFS #5244
-
Hi everyone! I have a rook-managed cephfs in my homelab that hosts a rather large (large enough that I wouldn't want to duplicate it) music library, which I access directly from PCs in the network. Now I want make this cephfs folder available to a container in k8s for music streaming. I assume this is possible, but I haven't been able to find clear documentation detailing how. My intuition tells me that I probably just need to manually create a PV and matching PVC to be able to get it mounted into containers. I've looked at PVs that have been created by the CephFS CSI, when dynamically provisioning from a PVC. These PVs have a bunch of volumeAttributes which reference subvolumes. Can anyone tell me what I'd need to configure in a PV to use an existing folder on a cephfs? Would I possibly need different credentials compared to those created by rook for the CSI? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
@pschichtel, CephFS Static PVC is what would must be looking. We have a good document on how to create static PVC for CephFS & RBD - cephfs-static-pvc. |
Beta Was this translation helpful? Give feedback.
@pschichtel, CephFS Static PVC is what would must be looking. We have a good document on how to create static PVC for CephFS & RBD - cephfs-static-pvc.