cluster.yaml
A cluster spec is short: a name and the members, in order.
api_version: genesis/v1
cluster:
name: lab
members:
- name: node-a
core_address: "100.64.0.11:8444"
- name: node-b
core_address: "100.64.0.12:8444"
- name: node-c
core_address: "100.64.0.13:8444"
Fields
| Field | Rules |
|---|---|
cluster.name | Lowercase DNS-safe label |
cluster.members | Three or more. members[0] bootstraps the cluster |
members[].name | A machine registered in this directory's ledger and created by sg |
members[].core_address | The member's cluster API address: its tailnet address and LXD port. Explicit port; never 8443 or a wildcard; unique across members |
Unknown keys and extra YAML documents in the file are refused.
What create checks first
Before it asks for confirmation, sg cluster create checks every member:
- registered, with
install.lxd,firewall.guardandverify.isolationapplied; - the same LXD channel, version and hold as the others (every mismatch is listed, in spec order);
core_addressmatches the member's own observed address and its LXD binding. Host names resolve through observed facts, never DNS;- compatible storage pool and bridge: a missing pool or bridge, a different pool driver or a non-NAT bridge refuses.
sgnever recreates or wipes a pool; - each joiner can reach the bootstrap member.
Rules that outlive the file
- Teardown follows the recorded roster. Editing
cluster.yamlnever releases a member. - A recorded member refuses
sg machine destroy. - Keep
cluster.yamlin the same directory as the machine specs. In another directory, it has its own ledger and the machine guard can't see it.