YouTube video demo: https://youtu.be/zEchDqjbahA?si=1Z6fiFjDOIUHynSj
- download the migrate.sh script and add your service account.
- create your service account
oc create sa $SERVICE_ACCOUNT
- set the permissions for your service account
oc adm policy add-scc-to-user anyuid system:serviceaccount:$NAMESPACE:$SERVICE_ACCOUNT
- create your new "target" pvc's
- stop the source & destination pods
- run the script
sh migrate.sh $SOURCE_PVC $DESTINATION_PVC
- Update your deployment to point to the new pvc
- Start your deployment/pod and verify the data
Check for job completion - oc get jobs -o wide
Credit to "https://justyn.io/til/migrate-kubernetes-pvc-to-another-pvc/"