关于 Google Kubernetes 集群备份

Regarding Google Kubernetes Cluster backup

我想了解有关 Google Kubernetes 集群备份的事情。我看到了这份文件,但这似乎更多地是关于 GCP Anthos On premises GKE Cluster 。

https://cloud.google.com/anthos/gke/docs/on-prem/archive/1.1/how-to/administration/backing-up

我看到很少有博客谈论 GKE 功能来创建现有 GKE 集群的克隆,但我在 GCP Console 中找不到任何选项来通过克隆现有 GKE 集群来创建新集群。

https://blog.doit-intl.com/google-kubernetes-engine-cluster-migration-with-velero-4a140b018f32

有人可以确认此克隆功能在 GKE 中是否仍然可用还是已弃用?

除了克隆 GKE 集群外,我们还需要备份集群资源和 PersistentVolumes。 看来 Veloro 是一个有用的工具,它是 GKE 感知的。

https://velero.io/

我正在寻找有关 GKE 集群备份的更多建议,它同时处理集群资源和持久卷。 Google 在 GKE 备份

上的任何 recommendation/best 实践

I saw few blogs talking of a GKE feature to create a clone of existing GKE Cluster but I cannot find any option in GCP Console to create new cluster by cloning an existing GKE Cluster.

Can somebody please confirm if this cloning feature is still available in GKE or it is deprecated ?

您实际上可以创建一个 副本! 通过进入:

  • Cloud Console (Web UI) -> Kubernetes Engine -> CLUSTER-NAME -> Duplicate.

Disclaimer!

This option will create a duplicate of your cluster but it will not copy the workload (Pods, Deployments, Services, Persistent Volumes, etc.)


转移您的工作量在很大程度上取决于您使用的资源。您需要仔细考虑所有资源并选择最适合您的用例的解决方案。

问题中提到的解决方案:

存储特定:


补充一下,您也可以采用不同的方法并使用旨在多次配置资源的工具,这可能会有所帮助。一旦创建了“脚本”,就可以多次使用(迁移等时在多个集群上)。此类工具的示例:


其他资源: