Skip to content

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:

  1. From the vJailbreak UI
  2. Using kubectl patch on the corresponding Pod of the migration.

Admin Cutover from the UI

  1. 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. Admin Cutover

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. Admin Cutover Button

  1. A confirmation dialog will appear. Click on the Confirm button to proceed with the admin cutover. Admin Cutover Confirmation

  2. After confirming, the migration will start the cutover process. Admin Cutover In Progress

Admin Cutover using kubectl patch

You can also trigger the admin cutover using the kubectl patch command.

  1. 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>
  2. Once you have identified the migration Pod, you can trigger the admin cutover by executing the following command:

Terminal window
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.