Migrate Limitation
When using Velero to migrate Cluster to Cluster, you can add the following options.
Mark the Volumes you want to backup and unnecessary resources
To mark the Volumes you want to backup and unnecessary resources, first you need to download the bash helper script we provide and perform grand execute permission. You can see details of the tab file at: velero_helper.sh
1. Convert hostPath Volume to Persistent Volume to be able to perform backup
Since Velero does not support backing up hostPath Volume, you need to convert hostPath Volume to Persistent Volume according to the following instructions:
To list hostPath Volumes in use:
2. Mark Persistent Volume to include in backup
All data Persistent Volumes are stored on vStorage. Need to add annotation for all pods using PV with volume name:backup.velero.io/backup-volumes=volume1,volume2
Or you can automatically find volumes by:
3. Mark resources in exclude in backup
Because VKS operates under the Fully Managed Control Plane mechanism, you do not need to backup resources such as: calico
, kube-dns
, kube-scheduler
, kube-apiserver
,... In addition, vContainer resources such as: magnum-auto-healer
, cluster-autoscaler
, csi-cinder
,... will also be ignored.
Identify resources that do not need backup via the command:
4. Check label and taint of node
When performing a migration, it is possible that the resources in the source Cluster are using labels and taints. You need to ensure these important labels and taints exist in the target Cluster.
Check lable and taint via command:
5. Mapping Storage Class
If your Storage Class is different between the source Cluster and the destination Cluster, you need to transfer the Storage Class between the two clusters. For example:
At the source Cluster, you have the following 2 Storage Classes:
You can create a mapping file with content like the example below to convert 2 storage classes from the source Cluster into 2 storage classes at the destination Cluster. This file must be applied at the target Cluster before you run the backup command:
Last updated