Skip to content
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

Open
scottrobertson opened this issue May 15, 2019 · 7 comments
Open

Simplify way to migrate volumes between clusters #157

scottrobertson opened this issue May 15, 2019 · 7 comments
Labels
help wanted Extra attention is needed

Comments

@scottrobertson
Copy link

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?

@welcome
Copy link

welcome bot commented May 15, 2019

Thank you for creating the issue! One of our team members will get back to you shortly with additional information.

@timoreimann
Copy link
Collaborator

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.

@bukowa
Copy link

bukowa commented Jan 31, 2020

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?

@timoreimann
Copy link
Collaborator

@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.

@bukowa
Copy link

bukowa commented Jan 31, 2020

@timoreimann yes i totally understand that, is it something reasonable to implement on the driver side?

@timoreimann
Copy link
Collaborator

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.

@botzill
Copy link

botzill commented Feb 10, 2020

I agree with @bukowa that having smth out of the box for reusing existing volumes will be really useful.

@timoreimann timoreimann changed the title Document a way to create volumes with name Simplify way to migrate volumes between clusters Jul 26, 2020
@timoreimann timoreimann added the help wanted Extra attention is needed label Aug 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants