Closed jleach closed 2 years ago
For some templates and step by step samples for copying data between clusters, head on over to the BCDevOps/StorageMigration/CrossClusterDataSteps walkthrough in the StorageMigration repo.
The walkthrough includes templates to build and deploy a migration pod (that mounts your PVC), as well as how to run an oc rsync
from a pod in Cluster A to a pod in Cluster B.
OpenShift 4.5+ (Silver Cluster) comes with an image
openshift/cli
in theopenshift
namespace. You can spin one up on the Silver cluster,oc logon
to the Pathfinder (3.11) cluster, and then do commands likeoc rsync
to copy data from Pathfinder to a PVC mounted on youropenshift/cli
Pod.The command below will help you get started. If you don't want the pod to be deleted when it exits remove the argument
--rm=true
or set it to--rm=false
.Once the pod is started you can
export HOME=/tmp
and thenoc login
as normal.ProTip You can use this container for other things like CronJobs, etc.