From c1c35c3975276fd3c0a6f308718415731249bae0 Mon Sep 17 00:00:00 2001 From: Riaan Nolan Date: Thu, 15 Aug 2024 10:50:43 +1000 Subject: [PATCH] update ipaddres for nomad in traefik using variable --- nomad/nomad/jobs/traefik.nomad | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nomad/nomad/jobs/traefik.nomad b/nomad/nomad/jobs/traefik.nomad index ed25869..09b19b0 100644 --- a/nomad/nomad/jobs/traefik.nomad +++ b/nomad/nomad/jobs/traefik.nomad @@ -33,7 +33,7 @@ job "traefik" { "--entrypoints.web.address=0.0.0.0:${NOMAD_PORT_http}", "--entrypoints.traefik.address=0.0.0.0:${NOMAD_PORT_admin}", "--providers.nomad=true", - "--providers.nomad.endpoint.address=http://10.9.99.10:4646" ### IP to your nomad server + "--providers.nomad.endpoint.address=http://${attr.unique.network.ip-address}:4646" ### IP to your nomad server ] } }