devopstales / devopstales.github.io

7 stars 7 forks source link

https://devopstales.github.io/home/k8s-migrate-pv/ #33

Open utterances-bot opened 3 months ago

utterances-bot commented 3 months ago

How to Migrate Persistent Volumes on Kubernetes Easily? - devopstales

https://devopstales.github.io/home/k8s-migrate-pv/

vsivas commented 3 months ago

Hi very detailed article. thank for that. Our usecase is little different. Have RWX and Retain attributes We are using efs-provisioner and wanted to migrate to AWS CSI EFS Driver. We added addon and defined new Storage class, PVC. But PVC is in pending state not bound with PV. Becase I have used old efs-id in the new Storage Class. Looking for a solution to migrate data from existing PV(created by efs-provisioenr) to new PV(Created by AWS CSI Driver). Can I use new efs-id in new storage class which helps PVC to PV bound and do a data copy? Can I use Rsync or pv-migrate tool to do data copy? Any other solution rather than deleting PVC,PV? For migration it seems I have to unbound from existing POD(Deployment) and mount to a new POD which also has new PV mounted? My intention is: Minimize down time, Work time, faster data copy.