简体   繁体   中英

How to make bronze -> gold persistent volume in IBM Cloud kubernetes

I have a Persistent Volume in IBM Cloud Kubernetes service. My pod has a high load that I suspect is due to IO problems, so I want to move the data in a bronze storage class to a ibmc-file-retain-gold volume.

How can I delete the Persistent Volume and, given I created it "retain" create a new one with that data that according to docs is not lost when deleting the PV and as a ibmc-file-retain-gold?

There's no way to "upgrade" a bronze class persistent volume to a gold class persistent volume, since behind the covers bronze and gold provision different flavors of NFS. What you'll need to do is create a new pvc with the gold storage class and then transfer data to the new persistent volume.

There are several ways to accomplish this transfer. You could use kubectl cp to both copy the data locally and then upload the data to your new persistent volume (once the volume is mounted to a pod).

Or you could use the backup-restore image if you want to create a more automated process. Docs for using that image are here: https://console.bluemix.net/docs/services/RegistryImages/ibm-backup-restore/index.html#ibmbackup_restore_starter

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM