Install nodes
Fresh nodes boot the installer into maintenance mode and wait for their first signed config. For a single-node walkthrough, see the quickstart; below covers maintenance mode, offline installs, and bootstrapping a 3-node HA cluster.
Maintenance mode
Section titled “Maintenance mode”A node enters maintenance mode when booted from the installer, or after a node reset. It generates its keypair, grabs DHCP on every interface, and prints a ticket (as text and a QR code) on the console:
<endpoint id>@10.10.0.11:7444,…From a workstation that can reach those addresses over UDP 7444, inspect its hardware to grab the
disk /dev/disk/by-id/ paths and interface MAC addresses for its node file:
anastroctl node inspect <ticket>Push the first config
Section titled “Push the first config”Over the network:
anastroctl cluster apply -n cp1 --maintenance <ticket>The initial config vouches for itself (the operator key signing it must appear in its own
cluster.operator_keys). The node checks hardware requirements first (/dev/kvm for workers;
max_memory plus Postgres leaving at least 2 GiB for the OS), installs to node.install_disk, and
prints the entry to paste into your client file.
Offline install with an ANASTROCFG disk
Section titled “Offline install with an ANASTROCFG disk”If you can’t reach the node over the network during installation, sign its config to a file and
attach it on a FAT disk labeled ANASTROCFG:
anastroctl cluster config sign -n cp1 -o config.jsonmkfs.vfat -n ANASTROCFG /dev/sdX # USB stick or small virtual disk# Copy config.json to the root of that filesystemThe node picks up config.json automatically and installs. Because an offline config isn’t pinned
to the node’s endpoint ID, peers won’t auto-unseal it—once it’s reachable, run
anastroctl cluster unseal -n cp1 followed by a normal anastroctl cluster apply. (Nodes
reset with their existing key ignore ANASTROCFG disks.)
What the installer writes
Section titled “What the installer writes”- Formats
node.install_diskwith an EFI boot partition, OS slot A, an empty OS slot B, and an encrypted/varwhose LUKS key is sealed to the machine’s TPM. - Saves the node’s keypair and config on
/var, keeping the same endpoint ID from the ticket. - Sets the installed disk first in UEFI boot order and reboots into it (an installed node ignores any installer media left plugged in).
The installer refuses to target its own boot disk or a partition. If the node’s config references secrets it hasn’t received yet, it boots sealed (Secrets).
Bootstrap a 3-node cluster
Section titled “Bootstrap a 3-node cluster”-
Create the config repo with three control-plane node files, each given a static IP inside
network.private.cidr(The config repo). Put youranastroctl cluster key operatoroutput incluster.operator_keysand youranastroctl cluster key ageoutput in[secrets] recipients. -
Initialize the secrets bundle and validate:
Terminal window anastroctl cluster bundle initanastroctl cluster bundle set storage/backups/access_key_id # repeat for each config secretanastroctl cluster validate -
Boot all three nodes from the installer. For each node, inspect its hardware, fill in
install_diskand interface MAC, install it, and paste the printed node entry into your client file:Terminal window anastroctl node inspect <ticket>anastroctl cluster apply -n cp1 --maintenance <ticket>Each node installs, reboots, and waits sealed.
-
Bootstrap the cluster:
Terminal window anastroctl cluster bootstrapbootstrapunseals every node with its secrets, pins each node’s config to the endpoints in your client file, and waits up to 15 minutes until every health check passes.etcdand Patroni form quorum and elect a Postgres primary. -
Verify health:
Terminal window anastroctl node status --as-operatoranastroctl cluster postgres status --as-operator
A 5-node cluster works the same way with five control-plane files. To attach worker-only nodes, see Add a worker-only node.
The first admin
Section titled “The first admin”When the database has no users yet, anastroctl cluster bootstrap automatically enrolls the device
running it as the first cluster admin (via PUT /v1/bootstrap-admin on the node API). Once healthy,
run anastroctl ui on that computer—no shell or SSH needed.
Re-running bootstrap later won’t replace an existing admin. Keep --as-operator for low-level node
administration; daily work runs under your enrolled device key.
To enroll additional devices or teammates, use anastroctl login (approved from this device) or
anastroctl account device link (The CLI,
Apps).
- Secrets: manage
secrets.age, sealed nodes, and 1Password. - Object storage and Backups.