Skip to main content

Add

Command

$ vela add worker <parameters...> <arguments...>
tip

For more information, you can run vela add worker --help.

Parameters

The following parameters are used to configure the command:

NameDescriptionEnvironment Variables
worker.addressaddress of the workerVELA_WORKER_ADDRESS, WORKER_ADDRESS
worker.hostnamehostname of the workerVELA_WORKER_HOSTNAME, WORKER_HOSTNAME
outputformat the output for the workerVELA_OUTPUT, WORKER_OUTPUT
tip

This command also supports setting the following parameters via a configuration file:

  • output

For more information, please review the CLI config documentation.

Permissions

Vela Platform Admin

Sample

warning

This section assumes you have already installed and setup the CLI and are authenticated as a Vela platform admin.

To install the CLI, please review the installation documentation.

To setup the CLI, please review the authentication documentation.

Request

$ vela add worker --worker.address myworker.example.com
tip

Not passing --worker.hostname will automatically use the hostname part of the passed in --worker.address as the hostname.

Response generated from successful CLI command

worker registered successfully

Examples

EXAMPLES:
1. Add a worker reachable at the provided address.
$ vela add worker --worker.address myworker.example.com
2. Add a worker with the provided hostname and reachable at the address given.
$ vela add worker --worker.hostname MyWorker --worker.address myworker.example.com