Skip to main content

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

Allowed values:Valid HTTP/HTTPS URL
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)

Allowed values:Valid Secret ID UUID
info

This trigger also supports all common trigger configuration options (such as thresholds, scheduling, and batching).


🚀 Examples

Basic Nomad API Setup

services:
whatsupdocker:
image: getwud/wud
environment:
- WUD_TRIGGER_NOMAD_LOCAL_ADDRESS=http://127.0.0.1:4646

ACL-Secured Nomad Cluster

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