Command · pk-metal
pk-metal bootstrap
changes machinesno cluster necessary
pk-metal bootstrap starts etcd on a new Talos cluster and waits until each node is ready.
It works without the operator. It talks to the Talos API of the nodes directly.
Synopsis
Section titled “Synopsis”pk-metal bootstrap --dir <manifests> --secrets <secrets.yaml|-> [flags]The command takes no arguments.
| Flag | Default | Description |
|---|---|---|
--dir<string>required | - | Directory with TalosCluster/TalosNode manifests. |
--endpoint<string> | - | Address of --node (default: its spec.address or first static address). |
--node<string> | - | Drive only this TalosNode (default: every node in --dir). |
--secrets<file>required | - | Secrets bundle from talosctl gen secrets, or - for stdin. |
--timeout<duration> | 15m0s | Overall deadline: bootstrap retries, readiness. |
--endpoint needs --node.
What it does
Section titled “What it does”- The command reads the manifests and the secrets bundle, as pk-metal render does.
- It makes a talosconfig with a short life.
- It bootstraps etcd on the control planes. It tries again until etcd runs.
- It waits until each node runs and is ready.
- It stops with an error when the time of
--timeoutends.
You can run the command again. It does not bootstrap a cluster a second time.
Examples
Section titled “Examples”pk-metal bootstrap --dir manifests/ --secrets secrets.yaml
bootstrap: cp-1 running and ready
bootstrap: cp-2 running and ready
bootstrap: cp-3 running and ready
bootstrap: OK: lab is bootstrapped and its nodes are ready
Work on one node only, at an address that is not in its manifest.
pk-metal bootstrap --dir manifests/ --secrets secrets.yaml --node cp-1 --endpoint 10.0.0.11Objects
Section titled “Objects”The command reads files, not objects in the cluster: the TalosCluster and TalosNode manifests in --dir.
On the nodes, it uses the authenticated Talos API to bootstrap etcd and to read the state.
With the operator, the TalosCluster controller bootstraps the cluster.
Exit status
Section titled “Exit status”Related
Section titled “Related”- pk-metal render and pk-metal boot come before this command.
- pk-metal pivot moves the operator onto the new cluster.
- Bootstrap without the operator
- Node not ready