Nomad
The nomad trigger triggers job restarts or task redeployments on HashiCorp Nomad clusters when updated container images are found.
⚙️ Configuration Variables
WUD_TRIGGER_NOMAD_{trigger_name}_ADDRESS
Optionalurldefault: http://127.0.0.1:4646
Base URL of the Nomad HTTP API
WUD_TRIGGER_NOMAD_{trigger_name}_ALLOCLABEL
Optionalstringdefault: com.hashicorp.nomad.alloc_id
Container label containing the Nomad allocation ID
WUD_TRIGGER_NOMAD_{trigger_name}_ALLTASKS
Optionalbooleandefault: false
Restart all tasks in the allocation instead of only the target task
WUD_TRIGGER_NOMAD_{trigger_name}_TASKLABEL
Optionalstringdefault: com.hashicorp.nomad.task_name
Container label containing the Nomad task name
WUD_TRIGGER_NOMAD_{trigger_name}_TOKEN
Optionalstring
Nomad Secret ID / ACL token (sent via X-Nomad-Token)
info
This trigger also supports all common trigger configuration options (such as thresholds, scheduling, and batching).
🚀 Examples
Basic Nomad API Setup
- Docker Compose
- Docker
services:
whatsupdocker:
image: getwud/wud
environment:
- WUD_TRIGGER_NOMAD_LOCAL_ADDRESS=http://127.0.0.1:4646
docker run \
-e WUD_TRIGGER_NOMAD_LOCAL_ADDRESS="http://127.0.0.1:4646" \
getwud/wud
ACL-Secured Nomad Cluster
- Docker Compose
- Docker
services:
whatsupdocker:
image: getwud/wud
environment:
- WUD_TRIGGER_NOMAD_LOCAL_ADDRESS=https://nomad.internal:4646
- WUD_TRIGGER_NOMAD_LOCAL_TOKEN=00000000-0000-0000-0000-000000000000
docker run \
-e WUD_TRIGGER_NOMAD_LOCAL_ADDRESS="https://nomad.internal:4646" \
-e WUD_TRIGGER_NOMAD_LOCAL_TOKEN="00000000-0000-0000-0000-000000000000" \
getwud/wud