NOMAD_ALLOC_DIR
|
The path to the shared alloc/ directory. See
here for more
information.
|
NOMAD_TASK_DIR
|
The path to the task local/ directory. See
here for more information.
|
NOMAD_SECRETS_DIR
|
Path to the task‘s secrets directory. See
here for more information.
|
NOMAD_MEMORY_LIMIT
|
Memory limit in MB for the task |
NOMAD_CPU_LIMIT
|
CPU limit in MHz for the task |
NOMAD_ALLOC_ID
|
Allocation ID of the task |
NOMAD_ALLOC_NAME
|
Allocation name of the task |
NOMAD_ALLOC_INDEX
|
Allocation index; useful to distinguish instances of task groups. From 0
to (count - 1). The index is unique within a given version of a job, but
canaries or failed tasks in a deployment may reuse the index.
|
NOMAD_TASK_NAME
|
Task‘s name |
NOMAD_GROUP_NAME
|
Group‘s name |
NOMAD_JOB_ID
|
Job‘s ID, which is equal to the Job name when submitted through CLI but can be different when using the API |
NOMAD_JOB_NAME
|
Job‘s name |
NOMAD_JOB_PARENT_ID
|
ID of the Job‘s parent if it has one |
NOMAD_DC
|
Datacenter in which the allocation is running |
NOMAD_NAMESPACE
|
Namespace in which the allocation is running |
NOMAD_REGION
|
Region in which the allocation is running |
NOMAD_META_<key>
|
The metadata value given by key on the task‘s
metadata. Note that this is different from
${meta.<key>}
which are keys in the node‘s metadata.
|
VAULT_TOKEN
|
The task‘s Vault token. See
Vault Integration
for more details
|
Network-related Variables |
NOMAD_IP_<label>
|
Host IP for the given port label . See
here for more information.
|
NOMAD_PORT_<label>
|
Port for the given port label . Driver-specified port when a
port map is used, otherwise the host‘s static or dynamic port
allocation. Services should bind to this port. See
here for more information.
|
NOMAD_ADDR_<label>
|
Host IP:Port pair for the given port label .
|
NOMAD_HOST_PORT_<label>
|
Port on the host for the port label . See
here for more
information.
|
NOMAD_IP_<task>_<label>
|
Host IP for the given port label and task for
tasks in the same task group.
|
NOMAD_PORT_<task>_<label>
|
Port for the given port label and task for
tasks in the same task group. Driver-specified port when a port map is
used, otherwise the host‘s static or dynamic port allocation.
Services should bind to this port.
|
NOMAD_ADDR_<task>_<label>
|
Host IP:Port pair for the given port label and
task for tasks in the same task group.
|
NOMAD_HOST_PORT_<task>_<label>
|
Port on the host for the port label and task
for tasks in the same task group.
|
NOMAD_UPSTREAM_IP_<service>
|
IP for the given service when defined as a Consul Connect
upstream.
|
NOMAD_UPSTREAM_PORT_<service>
|
Port for the given service when defined as a Consul Connect
upstream.
|
NOMAD_UPSTREAM_ADDR_<service>
|
Host IP:Port for the given service when
defined as a Consul Connect
upstream.
|
NOMAD_ENVOY_ADMIN_ADDR_<service>
|
Local address localhost:Port for the admin port of the
envoy sidecar for the given service when defined as a
Consul Connect enabled service.
|