utkuozdemir / pv-migrate

CLI tool to easily migrate Kubernetes persistent volumes
Apache License 2.0
1.63k stars 82 forks source link

Implement an rsync push mode when source pushes data to destination #263

Open MurzNN opened 11 months ago

MurzNN commented 11 months ago

Is your feature request related to a problem? Please describe. When we want to copy data from pv between different clusters, pretty often we have problems getting a public IP on the source cluster, because when it comes to copying data, usually it is not controllable by ourselves, but the new (destination) has more control.

So, it's much easier to achieve a public IP on the destination cluster, than on the source.

But to make the pv-migrate work, the current implementation requires the public IP on the source cluster, not on the destination, so the migration is not possible because of this.

Describe the solution you'd like To resolve this problem, will be good to implement a "push" mode, that will start the SSH server on the destination side, and push the data from the source pod to the destination, using the same rsync process.

utkuozdemir commented 11 months ago

This makes sense, I'll look into implementing it when I find the time.