Skip to content

Day 2

Move back after a pivot

Run the operator in the bootstrap cluster again, after a Pivot the operator.

  • You have the kubeconfigs of both clusters, for example bootstrap.kubeconfig and mgmt.kubeconfig.
  • Find if the new manager started. The pivot output says it.
The new manager Method
Did not start Scale the old manager up again.
Started Pivot in the other direction.
  1. Give the source its manager back.

    Terminal window
    kubectl --kubeconfig bootstrap.kubeconfig -n pk-metal scale deployment pk-metal-manager --replicas=1
  2. Make sure that the manager runs.

    Terminal window
    pk-metal --kubeconfig bootstrap.kubeconfig status

The objects on the target are a copy that nothing acts on. Remove them, or keep them for the next move.

  1. Move from the new cluster to the bootstrap cluster.

    Terminal window
    pk-metal --kubeconfig mgmt.kubeconfig pivot --to bootstrap.kubeconfig

    The source of the first move accepts the move back. The move removes objects that are gone on the new source.

  2. Type y to start.

  • pk-metal --kubeconfig bootstrap.kubeconfig status shows each Host in its phase.
  • The manager on the other cluster has zero replicas.