Day 2
Move back after a pivot
Run the operator in the bootstrap cluster again, after a Pivot the operator.
Before you start
Section titled “Before you start”- You have the kubeconfigs of both clusters, for example
bootstrap.kubeconfigandmgmt.kubeconfig. - Find if the new manager started. The pivot output says it.
Choose the case
Section titled “Choose the case”| The new manager | Method |
|---|---|
| Did not start | Scale the old manager up again. |
| Started | Pivot in the other direction. |
Steps: the new manager did not start
Section titled “Steps: the new manager did not start”-
Give the source its manager back.
Terminal window kubectl --kubeconfig bootstrap.kubeconfig -n pk-metal scale deployment pk-metal-manager --replicas=1 -
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.
Steps: the new manager started
Section titled “Steps: the new manager started”-
Move from the new cluster to the bootstrap cluster.
Terminal window pk-metal --kubeconfig mgmt.kubeconfig pivot --to bootstrap.kubeconfigThe source of the first move accepts the move back. The move removes objects that are gone on the new source.
-
Type
yto start.
Verify
Section titled “Verify”pk-metal --kubeconfig bootstrap.kubeconfig statusshows each Host in its phase.- The manager on the other cluster has zero replicas.