node
¶
The node
command manage LXD nodes of the deployment that run instances with Anbox Cloud and are managed by the Anbox Management Service (AMS). See Clustering for more information.
amc node <subcommand>
Subcommands¶
The following subcommands are available:
add
¶
Add a node to AMS. You can also use the alias new
.
amc node add <node_name> <node_ip_address> [options]
There are a few prerequisites for the adding a node:
The new node must have an accessible IP address.
LXD must be installed on the node before adding it but not initialised because AMS takes care of the initialisation and configuration of the node.
The following options are available:
Option |
Input type |
Description |
---|---|---|
|
Displays help information for the command |
|
|
String |
Name of the network device to create on the LXD cluster. The default value is |
|
Integer |
Maximum Transmission Unit of the network bridge that is configured for LXD |
|
String |
Network subnet for the network device on the node (default ‘192.168.100.1/20’) |
|
String |
Storage device that the LXD node should use |
|
String |
Existing LXD storage pool to use |
|
String |
Comma-separated list of tags to set for the node |
|
String |
Trust password for the remote LXD node |
|
Indicates that the node is already clustered |
list
¶
List available nodes. You can also use ls
as an alias.
amc node list [options]
The following options are available:
Options |
Description |
---|---|
|
Filters the output based on specified conditions |
|
Controls output formatting. The output format can be |
|
Displays help information for the command |
Usage for --filter
:
amc node list --filter attribute=value
where attribute
can be one of the following:
Name |
Argument type |
---|---|
master |
Boolean (true/false) |
status |
string (online, offline etc.) |
remove
¶
Removes a node from the Anbox Cloud cluster thereby making it unable to host instances.
Note
You cannot delete a node with running instances unless you use the --force
flag.
amc node remove <node_name> [options]
The following options are available:
Options |
Description |
---|---|
|
Forcibly removes the node |
|
Displays help information for the command |
|
Removes the LXD node from the AMS database but keeps it as part of the cluster |
|
Run non interactively by assuming ‘yes’ for all prompts |
set
¶
Set specific configuration for a node. See AMS configuration for a list of available configuration items.
amc node set <node_name> <config_item_name> <config_item_value> [options] --timeout=10m
where -t
or –timeout
is a string value to indicate the maximum wait time for the operation to complete. The default value is 5m
.
show
¶
Display information about a node.
amc node show <node_name> [options]
The following options are available:
Option |
Description |
---|---|
|
Shows resource allocations |
|
Controls output formatting with values |
|
Displays help information for the command |