Giter Site home page Giter Site logo

Comments (8)

utkuozdemir avatar utkuozdemir commented on June 13, 2024

is it possible to pv migrate all pvc's from one cluster to another? like one script that is *.pvc in this namespace to another?

No, but you can use this tool in a bash script to achieve what you need.

also when you run pv migrate a seond time does it already rsync only incremental changes on the source

Yes, it uses regular rsync command which works incrementally.

from pv-migrate.

tstark7952 avatar tstark7952 commented on June 13, 2024

errors.txt
i am trying to run this from one gke cluster to another and sometimes it works and sometimes it fails with ssh errors. it looks like the tool is trying to ssh into the k8s master which google doesnt allow, could you tell me how to get consistent results if possible?

from pv-migrate.

utkuozdemir avatar utkuozdemir commented on June 13, 2024

It does not try to SSH into any node. It tries to SSH into the pod it creates over a LoadBalancer type service (with IP 34.23.5.115 in your case).

Can you run it via --log-level debug --log-format json and share the full logs here?

from pv-migrate.

tstark7952 avatar tstark7952 commented on June 13, 2024

can we force the tool to use internal gke load balancers, this is opening up port 22 to the entire world

from pv-migrate.

utkuozdemir avatar utkuozdemir commented on June 13, 2024

Yes, AFAIK it is done using annotations on the Service. Using --helm-* flags you can customize the service annotations - see https://github.com/utkuozdemir/pv-migrate/blob/master/helm/pv-migrate/values.yaml#L40

from pv-migrate.

tstark7952 avatar tstark7952 commented on June 13, 2024

trying to run this below for more than a single pvc, how can i do that?

pv-migrate migrate
--source-kubeconfig /path/to/source/kubeconfig
--source-context some-context
--source-namespace source-ns
--dest-kubeconfig /path/to/dest/kubeconfig
--dest-context some-other-context
--dest-namespace dest-ns
--dest-delete-extraneous-files
old-pvc new-pvc

from pv-migrate.

utkuozdemir avatar utkuozdemir commented on June 13, 2024

pv-migrate migrate
--source-kubeconfig /path/to/source/kubeconfig
--source-context some-context
--source-namespace source-ns
--dest-kubeconfig /path/to/dest/kubeconfig
--dest-context some-other-context
--dest-namespace dest-ns
--dest-delete-extraneous-files
old-pvc new-pvc

As I mentioned, you can wrap the tool in a bash script for loop. Here's an example:
https://gist.github.com/utkuozdemir/8f775656b75843a5bf0f17f6db12e12a

from pv-migrate.

utkuozdemir avatar utkuozdemir commented on June 13, 2024

Closing, as it can be easily addressed with my suggestion above.

from pv-migrate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.