Workflow
Pivot
At a new site no cluster exists yet. The operator starts in a bootstrap cluster and installs the first Talos cluster. Then pk-metal pivot moves the operator onto that cluster. Pivot model explains what moves.
Move the operator (pivot)
1 / 8
Bootstrap
The operator starts in a small bootstrap cluster, for example kind on a workstation. It installs the first Talos cluster.
kind create clusterBootstrap. The operator starts in a small bootstrap cluster, for example kind on a workstation. It installs the first Talos cluster.
kind create clusterPreflight. pivot refuses to start while an operation runs, an operation waits for approval, a rollout runs, or the target has no storage for the media store.
pk-metal pivot --to mgmt.kubeconfigPause the source. pivot scales the source manager to zero and waits until it stops. It does not delete it. Annotations on the namespace record the move.
metal.platform-kit.org/pivoted-to, metal.platform-kit.org/pivot-replicasInstall. pivot installs the CRDs, the admission policies, the roles and the manager on the target. The manager has zero replicas.
CRDs → policies → RBAC → namespace → Deployment (0)Copy. pivot copies Secrets, Assets, Hosts, claims, operations and Talos objects with their status. It writes the new UIDs into each reference.
spec.claimRef.uid, owner references, approvalsStart. pivot starts the target manager and waits for its leader lease. The target manager now reaches the BMCs and the nodes.
--media-url https://<node address>:30443Settle. pivot watches the new manager for 90 seconds. A new operation is a failure: a move never boots, powers or changes a machine.
--settle 90sDone. The operator runs on the machines that it manages. Self-protection now holds power actions on its own control planes. Delete the kind cluster when you no longer need it.
kind delete cluster --name <name>
- Start a bootstrap cluster, for example kind, and install the operator.
- Install the first Talos cluster with Rack to running node.
- Make sure that the new cluster reaches each BMC and node. See the table below.
- Run
pk-metal pivot --to mgmt.kubeconfig. Give--media-urlwith a node address of the new cluster. - The command does these steps in order: preflight, pause the source, install, copy, start, settle.
- Watch pk-metal status for some time.
- Delete the bootstrap cluster when you no longer need it.
Network
Section titled “Network”| From | To | Why |
|---|---|---|
| Each node of the new cluster | Each BMC, HTTPS | Redfish |
| Each node of the new cluster | Each installed machine, port 50000 | Talos API |
| Each BMC | The new cluster, NodePort 30443 | The BMCs get boot media |
| Each node of the new cluster | The image factory | The operator registers installer images |
Move back
Section titled “Move back”- Before the target manager started: scale the source manager back to one replica.
- After it started: run pk-metal pivot in the other direction. See Move back after a pivot.
Try it in the lab
Section titled “Try it in the lab”mise run lab:pivot moves the lab operator from kind onto the lab cluster. Pivot in the lab shows each step.