What storage csi are you using? Local provisioner?
b
bulky-vr-43294
08/19/2025, 3:26 AM
Local provisioner
m
mysterious-animal-29850
08/19/2025, 3:40 AM
You are limited by the local provisioner csi; and there is no migration since the pvc is namespace scoped. The long way is to scale workload to 0. Attach a toolbox or default image to the pvc, kubectl cp the data to the server host, then spin up the new deployment/pvc, set it to 0. Deploy the toolbox pod and attach the new pvc. Then kubectl cp from server host to the new pvc.
mysterious-animal-29850
08/19/2025, 3:41 AM
A quick internet search found this tool https://github.com/utkuozdemir/pv-migrate, but i've never used it. Might be worth a try in a lab env before attempting in a dev/prod.