简体   繁体   English

如何在IBM Cloud kubernetes中制作青铜->黄金持久卷

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

I have a Persistent Volume in IBM Cloud Kubernetes service. 我在IBM Cloud Kubernetes服务中有一个永久卷。 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. 我怀疑我的Pod负载过重是由于IO问题造成的,因此我想将青铜存储类中的数据移至ibmc-file-retain-gold卷。

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? 如何删除持久卷,并给它创建“保留”,然后使用该数据创建一个新卷,该数据根据文档在删除PV时不会丢失并作为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. 无法将“青铜”类持久性卷“升级”到“金”类持久性卷,因为在封面和青铜和金的后面提供了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. 您需要做的是使用gold存储类创建一个新的pvc,然后将数据传输到新的持久卷中。

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). 您可以使用kubectl cp在本地复制数据,然后将数据上传到新的永久卷(一旦将卷安装到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 使用该图像的文档在这里: https : //console.bluemix.net/docs/services/RegistryImages/ibm-backup-restore/index.html#ibmbackup_restore_starter

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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