Perform Admin Cutover
The Admin Cutover feature in vJailbreak is used to finalize a migration after the data transfer is complete.
It can be triggered in two ways:
- From the vJailbreak UI
- Using kubectl patch on the corresponding
Pod
of the migration.
Admin Cutover from the UI
- Navigate to the migration you want to perform the admin cutover for, in the migration Options column,
Select the cutover options and select Admin Initiated Cutover as shown in the Image below.
Once the migration is done with copying data, the status of the migration will change to waitforAdminCutover
.
You can then click on the Admin Cutover button to trigger the cutover process.
-
A confirmation dialog will appear. Click on the Confirm button to proceed with the admin cutover.
-
After confirming, the migration will start the cutover process.
Admin Cutover using kubectl patch
You can also trigger the admin cutover using the kubectl patch
command.
-
First, identify the name of the migration
Pod
you want to perform the admin cutover for. You can do that by doing the following things:- Get the name of the migration namespace. You can find it in the vJailbreak UI under the migration details.
Terminal window kubectl get migration -n migration-system | grep -i <migration-name>migration-name AwaitingAdminCutOve vjb 1h- Get the podRef of migration object
Terminal window kubectl get migration <migration-name> -n migration-system -o jsonpath='{.spec.podRef}'<pod-name> -
Once you have identified the migration
Pod
, you can trigger the admin cutover by executing the following command:
kubectl patch pod <pod-name> -n migration-system -p '{"metadata":{"labels":{"startCutover":"yes"}}}'
Replace pod-name
with the name of your migration Pod
and migration-system
with the name of your migration namespace.