Comments (8)
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.
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.
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.
can we force the tool to use internal gke load balancers, this is opening up port 22 to the entire world
from pv-migrate.
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.
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.
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.
Closing, as it can be easily addressed with my suggestion above.
from pv-migrate.
Related Issues (20)
- Minimal needed RBAC permissions HOT 1
- Error: all strategies failed from 1.21 (docker) to 1.22 (containerd) in Yandex Cloud HOT 1
- Unable to pass helm values in a file HOT 2
- Tailscale strategy
- AlmaLinux9/RKE2 Selinux blocks pv-migrate HOT 2
- Support migration between PVCs in Block volumeMode
- Set preferredDuringSchedulingIgnoredDuringExecution weight to something higher depending on the usecase HOT 2
- Exclude/include HOT 4
- Postgresql pvc migration doesn't seem to work
- New strategy combining local with LB service HOT 3
- Local strategy fails on port forwarding in our case of cross-cluster migration (error upgrading connection: Unauthorized) HOT 2
- libsvc job should support configurable retries HOT 2
- pv-migrate should allow for resuming transfers HOT 3
- NodePort type service HOT 6
- Migrating from a larger to a smaller pvc fails with a generic error message. HOT 1
- Add Helm rsync.fixPrivateKeyPerms option HOT 12
- Add ssh keepalive configuration HOT 4
- Is rsync retry logic correct? HOT 1
- Would like to provide a best pratics for AWS PV Migration
- Rsync command overwrite HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pv-migrate.