Skip to content

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.

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:

Terminal window
anastroctl node inspect <ticket>

Over the network:

Terminal window
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.

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:

Terminal window
anastroctl cluster config sign -n cp1 -o config.json
mkfs.vfat -n ANASTROCFG /dev/sdX # USB stick or small virtual disk
# Copy config.json to the root of that filesystem

The 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.)

  1. Formats node.install_disk with an EFI boot partition, OS slot A, an empty OS slot B, and an encrypted /var whose LUKS key is sealed to the machine’s TPM.
  2. Saves the node’s keypair and config on /var, keeping the same endpoint ID from the ticket.
  3. 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).

  1. Create the config repo with three control-plane node files, each given a static IP inside network.private.cidr (The config repo). Put your anastroctl cluster key operator output in cluster.operator_keys and your anastroctl cluster key age output in [secrets] recipients.

  2. Initialize the secrets bundle and validate:

    Terminal window
    anastroctl cluster bundle init
    anastroctl cluster bundle set storage/backups/access_key_id # repeat for each config secret
    anastroctl cluster validate
  3. Boot all three nodes from the installer. For each node, inspect its hardware, fill in install_disk and 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.

  4. Bootstrap the cluster:

    Terminal window
    anastroctl cluster bootstrap

    bootstrap unseals 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. etcd and Patroni form quorum and elect a Postgres primary.

  5. Verify health:

    Terminal window
    anastroctl node status --as-operator
    anastroctl 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.

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).