-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simplify way to migrate volumes between clusters #157
Comments
Thank you for creating the issue! One of our team members will get back to you shortly with additional information. |
One way to implement this that I've been thinking about would be to add a small operator that accepts a simple CRD for the volume to be integrated. It would hide all the details of mapping IDs and setting up PVs properly. |
For me it seems usefull to re-use volume in PVC if it already exists, and if not, a new one should be created. Can i achieve that out of the box? |
@bukowa the link shared in the original post of this issue describes how to re-use an existing volume. There's no mechanism in place implementing a reuse-or-create logic; I suppose you could build that yourself by checking if the volume exists and creating the PV depending on the outcome of that check. |
@timoreimann yes i totally understand that, is it something reasonable to implement on the driver side? |
Yeah, I think it's a reasonable thing to do for that hypothetical controller I mentioned above. I'm not sure whether it would be best to integrate the controller into the driver or provide it as a stand-alone component, but that's more of a detail. |
I agree with @bukowa that having smth out of the box for reusing existing volumes will be really useful. |
This may already be somewhere, or perhaps i am thinking about it wrong, but I cannot find anything.
I recently had to migrate to another cluster, and i used https://github.com/digitalocean/csi-digitalocean/tree/master/examples/kubernetes/pod-single-existing-volume to keep the exisiting volumes.
Would it make sense to document a way so that when creating the volumes, they can easily be migrated to a new cluster, instead of having to retroactively go back and get the ids, and create "fake" PV definitions.
For example, can this be done by supplying a name to the PV?
The text was updated successfully, but these errors were encountered: