Solution Overview
Backup and migration are essential for ensuring data security and service continuity in Kubernetes environments. A comprehensive backup in Kubernetes includes not only persistent data, but also the cluster state, configuration files, deployed applications, and associated services. Cluster migration refers to restoring these backups to a new or target cluster.
CCE supports a variety of backup and migration tools for different scenarios and requirements. The typically used tools are listed in the table below.
|
Tool |
Description |
Advantages and Disadvantages |
Operation Guide |
|---|---|---|---|
|
Velero |
Velero is an open-source backup and migration tool for Kubernetes clusters. With restic's PV data backup capabilities, Velero can back up Kubernetes resource objects (such as Deployments, jobs, Services, and ConfigMaps) in the source cluster and data in PVs mounted to pods and uploaded them to object storage. If a disaster occurs or migration is required, the target cluster can obtain the corresponding backup data from the object storage using Velero and restore cluster resources as required. |
|
|
|
k8clone |
k8clone is a user-friendly tool for cloning Kubernetes metadata. It allows you to save Kubernetes metadata (objects) as local packages and then restore them to the target cluster. |
|
|
Resource Type |
Supported by Velero |
Supported by k8clone |
Migration Description |
|---|---|---|---|
|
Workload (Deployment, job, StatefulSet, and DaemonSet) |
Supported |
Supported |
You may need to modify some configurations, such as image address and storage class. |
|
ConfigMap/Secret |
Supported |
Supported |
None |
|
PVC |
Supported |
Supported |
You only need to modify some configurations. If PVCs of block storage, file storage, and object storage of other cloud vendors are used, you need to adapt them to the storage classes of CCE. |
|
PV |
Partially supported |
Not supported |
|
|
Storage class |
Partially supported |
Partially supported |
Storage class migration that depends on the storage media of other cloud vendors is not supported. |
|
Service |
Supported |
Supported |
LoadBalancer Services need to be adapted. |
|
Ingress |
Partially supported |
Partially supported |
Ingresses that depend on the open-source NGINX Ingress Controller can be migrated. |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot