如何在同一项目中的GKE簇中迁移持久量?
我有一个gke群集运行,其中有几个持久磁盘用于存储。 为了设置一个登台环境,我在同一项目中创建了第二个集群。 现在,我想在登台集群中使用生产群集的持久磁盘中的数据。
我已经为登台集群创建了持久磁盘。将生产数据转移到登台群集的磁盘的最佳方法是什么?
I have a GKE cluster running with several persistent disks for storage.
To set up a staging environment, I created a second cluster inside the same project.
Now I want to use the data from the persistent disks of the production cluster in the staging cluster.
I already created persistent disks for the staging cluster. What is the best approach to move over the production data to the disks of the staging cluster.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用开源工具 velero 旨在迁移kubernetes cluster资源。
请按照以下步骤在GKE簇中迁移持久磁盘:
注意:下载和安装已在A上执行Linux系统,这是云外壳使用的操作系统。如果您通过Cloud SDK管理GCP资源,则发布和安装过程可能会有所不同。
既然持续的卷已经备份,则可以继续迁移到目标集群之后,然后再迁移到目标集群。步骤:
查看此教程作为参考。
You can use the open source tool Velero which is designed to migrate Kubernetes cluster resources.
Follow these steps to migrate a persistent disk within GKE clusters:
Note: The download and installation was performed on a Linux system, which is the OS used by Cloud Shell. If you are managing your GCP resources via Cloud SDK, the release and installation process could vary.
Now that the Persistent Volumes are backed up, you can proceed with the migration to the destination cluster following these steps:
Check out this tutorial as a reference.