Migration

Overview

Migration from one cluster to another is the process of moving data, applications, and services from one set of servers to another. The purpose of this is often to upgrade the system, increase availability and fault tolerance, or to scale the system.


Model


Implementation steps

Specifically:

  • Step 1: Prepare target cluster (Prepard target resource): on the VKS system, you need to initialize a Cluster according to the instructions here . Make sure that the destination cluster's configuration is the same as the source cluster's configuration.

  • Step 2 [Optional] : If your cluster has private resources such as images, databases, storage... Now, before starting to migrate, you need to proactively migrate these resources yourself.

  • Step 3 : Install Velero on both source and destination clusters (Install Velero tool): after you have migrated private resources outside the cluster, you can use the migration tool to backup and restore. Restore the application on the source cluster and target cluster.

  • Step 4 : Backup: To back up resources, use the Velero tool to create a backup object in the source cluster. Velero will perform queries, package the data, and upload them to an S3 Compatible Object Storage.

  • Step 5 : Restore: During the restore process at the destination cluster, Velero will download backup data to the new cluster and redeploy resources based on the JSON file.

  • Step 6 [Optional] : Update resource config: After the target cluster's resources are deployed properly, you can switch traffic for your service. After confirming that all services are running properly, you can delete the source cluster.

Below are detailed instructions for common cases when you migrate workloads from one Cluster to another. You can refer to and follow the instructions at:

Last updated