cubefs-csi icon indicating copy to clipboard operation
cubefs-csi copied to clipboard

Add feature that supports importing existing CubeFS volume into k8s cluster and create a corresponding PersistentVolume

Open Huweicai opened this issue 2 years ago • 5 comments

Huweicai avatar Dec 27 '22 17:12 Huweicai

Does any situation requires this feature?

heymingwei avatar Feb 06 '23 02:02 heymingwei

For example, if we have two Kubernetes cluster, they are using a same background CubeFS cluster, but what if we want to share a volume between these two clusters? It's hard to share volumes now, we have to create and fill up a custom PV and bind it to PVC manually.

Huweicai avatar Mar 16 '23 14:03 Huweicai

Honestly,I have same problem.

dantegarden avatar Apr 20 '23 04:04 dantegarden

Hi @Huweicai did you manage to get that sorted or add some way to use existing volume? In our case we do share volumes between different services so we would like to be able to target existing volume rather than create dynamic ones.

Weyn avatar Oct 06 '23 14:10 Weyn

@Weyn Nope, i am not working on it now, but there's a way to achieve it manually, you can copy all the volumeAttributes from one and create a PV in another cluster with the same volumeAttributes.

Huweicai avatar Oct 09 '23 16:10 Huweicai