Reference

This section contains a reference of configuration options for the Vela worker service.

Components

The worker is made up of several components, responsible for specific tasks, necessary for the service to operate:

NameDescription
executorcoordinates with the runtime to manage workload resources and reports results back to the server
queueintegrates with a queue provider for pulling workloads, provided by the server, that will be run
runtimeintegrates with a runtime environment for executing workload resources

Required

This section contains a list of all variables that must be provided to the worker.

VELA_QUEUE_DRIVER

This configuration variable is used by the queue component for the worker.

Examples using this configuration variable are provided in the above reference documentation.

This variable sets the driver to use for the queue functionality for the worker.

The variable should be provided as a string.

VELA_SERVER_ADDR

This variable sets a fully qualified URL to the Vela server address.

The variable should be provided as a string.

VELA_WORKER_ADDR

This variable sets a fully qualified URL to the Vela worker address.

The variable should be provided as a string.

Optional

This section contains a list of all variables that can be provided to the worker.

VELA_SERVER_SECRET

This variable sets a shared secret for authenticating communication between workers and the server.

Only necessary to provide if utilizing the server-worker trusted symmetric worker authentication method.

The variable should be provided as a string.

VELA_BUILD_LIMIT

This variable sets a number to control the maximum amount of builds that are allowed to run concurrently on the worker.

The variable can be provided as an integer.

VELA_BUILD_TIMEOUT

This variable sets the maximum duration of time a build can run for on the worker before being terminated.

The variable can be provided as a duration (i.e. 5s, 10m).

VELA_CHECK_IN

This variable sets the maximum duration of time a worker will wait before registering with the Vela server.

The variable can be provided as a duration (i.e. 5s, 10m).

VELA_EXECUTOR_DRIVER

This configuration variable is used by the executor component for the worker.

Examples using this configuration variable are provided in the above reference documentation.

This variable sets the driver to use for the executor functionality for the worker.

The variable can be provided as a string.

VELA_EXECUTOR_MAX_LOG_SIZE

This configuration variable is used by the executor component for the worker.

This variable sets the maximum number of bytes for logs allowed to be uploaded per step.

The variable can be provided as an integer.

VELA_EXECUTOR_ENFORCE_TRUSTED_REPOS

This configuration variable is used by the executor component for the worker.

This variable sets whether or not the executor will verify a repository is trusted before executing a build that contains privileged images (see runtime privileged images).

The variable can be provided as a boolean.

VELA_QUEUE_CLUSTER

This configuration variable is used by the queue component for the worker.

This variable enables the worker to connect to a queue cluster rather than a standalone instance.

The variable can be provided as a boolean.

VELA_QUEUE_POP_TIMEOUT

This configuration variable is used by the queue component for the worker.

This variable sets the maximum duration of time the worker will wait before timing out requests sent for pulling workloads.

The variable can be provided as a duration (i.e. 5s, 10m).

VELA_QUEUE_ROUTES

This configuration variable is used by the queue component for the worker.

This variable sets the unique channels or topics to pull workloads from.

The variable can be provided as a comma-separated list (i.e. myRoute1,myRoute2).

VELA_RUNTIME_CONFIG

This configuration variable is used by the runtime component for the worker.

Examples using this configuration variable are provided in the above reference documentation.

This variable sets a fully qualified system path to a configuration file for the worker.

The variable can be provided as a string.

VELA_RUNTIME_DRIVER

This configuration variable is used by the runtime component for the worker.

Examples using this configuration variable are provided in the above reference documentation.

This variable sets the driver to use for the runtime functionality for the worker.

The variable can be provided as a string.

VELA_RUNTIME_NAMESPACE

This configuration variable is used by the runtime component for the worker.

Examples using this configuration variable are provided in the above reference documentation.

This variable sets a namespace (for Kubernetes only) to use for runtime workloads.

The variable can be provided as a string.

VELA_RUNTIME_PODS_TEMPLATE_NAME

This configuration variable is used by the runtime component for the worker.

Examples using this configuration variable are provided in the kubernetes runtime documentation.

This variable sets a PipelinePodsTemplate name (for Kubernetes only) to use for runtime workloads. The named template must be in the VELA_RUNTIME_NAMESPACE.

The variable can be provided as a string.

VELA_RUNTIME_PODS_TEMPLATE_FILE

This configuration variable is used by the runtime component for the worker.

This variable sets the path to a PipelinePodsTemplate YAML file (for Kubernetes only) to use for runtime workloads. This file is only used if VELA_RUNTIME_PODS_TEMPLATE_NAME is empty.

An example file is provided in the kubernetes runtime documentation.

This is useful for Kubernetes clusters that do not allow loading CRDs. It is also used for testing Vela.

The variable can be provided as a string.

VELA_RUNTIME_PRIVILEGED_IMAGES

This configuration variable is used by the runtime component for the worker.

This variable sets the Docker image(s) that are allowed to have privileged access on the worker.

The variable can be provided as a comma-separated list (i.e. myImage1,myImage2).

VELA_RUNTIME_DROP_CAPABILITIES

This configuration variable is used by the runtime component for the worker.

This variable leverages the --cap-drop Docker run flag to disable certain kernel capabilities given to the container by default.

This variable can be provided as a comma-separated list (e.g. CAP_CHOWN,CAP_DAC_OVERRIDE). There is some validation in place to ensure accurate capabilities are provided.

VELA_RUNTIME_VOLUMES

This configuration variable is used by the runtime component for the worker.

This variable sets the fully qualified system path(s) to file(s) on the host machine that will be mounted into workloads executed on that worker.

The variable can be provided as a comma-separated list (i.e. myVolume1,myVolume2).

VELA_SERVER_CERT

This variable sets a fully qualified system path to the TLS certificate used for HTTPS for the worker.

The variable can be provided as a string.

VELA_SERVER_CERT_KEY

This variable sets a fully qualified system path to the TLS certificate key used for HTTPS for the worker.

The variable can be provided as a string.

VELA_SERVER_TLS_MIN_VERSION

This variable sets the minimum TLS version that the worker API will accept.

The variable can be provided as a string.