Run af-server --enrollment on the new machine: it prints this command with the node’s keys filled in. The machine’s private key never leaves it. Requires a platform administrator (an administrator of the operator’s organization, which runs the forge); another platform administrator approves the request unless you are the only one. Once the enrollment takes effect, start the node with af-server --join.
Usage
af enroll-node [OPTIONS] --seal <SEAL> --seal-proof <SEAL_PROOF> --name <NAME> --address <ADDRESS> <KEY>Arguments
-
<KEY>Node’s Ed25519 public key, in hex
Options
-
--seal <SEAL>Public part of the node’s sealing key, in base64, as printed by
af-server --enrollmentThe cluster’s nodes use it to share the cluster’s key with the new node.
-
--seal-proof <SEAL_PROOF>Node key’s signature over its sealing key, in hex, as printed by
af-server --enrollment -
--name <NAME>Name of the machine, recorded for reference
-
--address <ADDRESS>Address where the cluster’s other nodes reach this node, as host:port
-
--client-address <CLIENT_ADDRESS>Address where clients reach this node, as host:port: what a client that asked a node that does not lead is sent to, to wait at the one that does
It is never the address above, which is the cluster’s own. Leave it out for a node clients are not sent to: they then ask again here, or look every few seconds. It is approved as the address above is, and is changed by enrolling the node again.
-
--machine <MACHINE>The node’s machine, as
af-server --enrollmentprints it: the forge refuses an organization’s runner on it -
--reason <REASON>Reason for the request, recorded with it
Default:
""
Global options
Every af command also takes the global options.
Examples
af enroll-node NODE_KEY --seal SEAL --seal-proof SEAL_PROOF --name rack-2 --address 10.0.0.2:7778
af enroll-node NODE_KEY --seal SEAL --seal-proof SEAL_PROOF --name rack-2 --address 10.0.0.2:7778 --client-address nodes-2.example.com:7777