将Kubernetes集群转移到其他项目包括PVC [英] Transferring Kubernetes cluster to other project include PVC

查看:112
本文介绍了将Kubernetes集群转移到其他项目包括PVC的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在将kubernetes集群迁移到其他Google项目时遇到了问题,而不是对GKE不太熟悉.假设我的集群是xyz-proj项目中的k8s-prod-xyz.

I have a problem to migrate kubernetes cluster to other google project, not so familiar with GKE. Assuming my cluster is k8s-prod-xyz in xyz-proj project.

现在,我有一个名为xyz-new-proj的新项目,而Kubernetes集群仍然为空.我想将k8s-prod-xyz从xyz-proj移动或迁移到xyz-new-proj.

Now, i have a new project called xyz-new-proj and the Kubernetes cluster is still empty. I want to move or migrate the k8s-prod-xyz from xyz-proj to xyz-new-proj.

节点,PVC,服务等应被转移或迁移.你们经历过这种情况吗?还是应该在新项目中创建新的Kubernetes集群,然后从零开始运行部署?

Node, PVC, Services, etc should be transfered or migrated. Have you guys experienced this case ? Or should i create new Kubernetes cluster in new project and then run the deployment from zero ?

推荐答案

您可以使用 GKE 功能克隆现有群集(但是仅在同一项目中有效)以及 Heptio Velero 工具.我猜想此 article是目前执行此类迁移的最快,最方便的方法.

You can use GKE feature Clone an existing cluster (however this works only within the same project) along with Heptio Velero tool. I guess the solution described in this article is currently the fastest and most convenient way of performing such migration.

这篇关于将Kubernetes集群转移到其他项目包括PVC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆