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