Skip to content

chalkctl node activate

chalkctl node activate <node> [flags]

Makes the image staged on a node boot next, as chalkctl upgrade --until stage leaves it: the node renames the image's UKI to its boot entry's name with the tries the image asks for, so boot counting falls back to the running image should its boots fail. chalkctl names the image the inventory gives the node, or with --image the image upgrade --image staged, by its root hash, and the node refuses when it has no image staged or another one. With --image the command needs no inventory. The node checks the UKI again, and not the config: the image's own checker passed the config before the image was staged. Asked again, the command says that the image boots next already. The image boots with the node's next reboot, which chalkctl node reboot runs. The command needs an operator client file or the secrets file.

Flags

Flag Type Default Description
--address list of [NODE=]ADDR each node's address in the inventory Address of a node's chalkd: host or host:port for the node the command names, or NODE=ADDR for any node; may be repeated.
--config string $CHALKOSCONFIG, else ~/.config/chalkos/config, unless --secrets is given Client file to authenticate with instead of the secrets file.
--identity list of string ~/.config/chalkos/age.key, ~/.ssh/id_ed25519, ~/.ssh/id_rsa File holding an age identity to decrypt the secrets with; may be repeated.
--image string the node's image in the inventory Image to activate, as upgrade --image staged it: a raw image with repart-output.json next to it, or an image directory.
--inventory string $CHALKOSINVENTORY, else chalkos.yaml in the current directory, when it exists Inventory naming the cluster's nodes, their addresses and their config files.
--secrets string — Cluster secrets path (.age, .enc.*, or plaintext), provider URI, or - for standard input.

Examples

chalkctl upgrade --nodes w1 --until stage
chalkctl node activate w1
chalkctl node reboot w1

# Activate the image upgrade --image staged.
chalkctl upgrade --image ./worker-image --nodes w1 --until stage
chalkctl node activate w1 --image ./worker-image

See also

  • chalkctl node: Manage a node's access, activate its staged image, reboot it and show its diagnostics and routes