Small traefik cleanup

Remove fallback DNS since we only care about internal DNS

Use loopback address for accessing Nomad UI
This commit is contained in:
IamTheFij 2024-01-04 13:24:41 -08:00
parent 6b9533ef71
commit c26da678b3

View File

@ -44,7 +44,6 @@ job "traefik" {
"192.168.2.101", "192.168.2.101",
"192.168.2.102", "192.168.2.102",
"192.168.2.30", "192.168.2.30",
"192.168.2.170",
] ]
} }
} }
@ -160,7 +159,7 @@ job "traefik" {
exposedByDefault = false exposedByDefault = false
defaultRule = "Host(`{{normalize .Name}}.<< with nomadVar "nomad/jobs" >><< .base_hostname >><< end >>`)" defaultRule = "Host(`{{normalize .Name}}.<< with nomadVar "nomad/jobs" >><< .base_hostname >><< end >>`)"
[providers.nomad.endpoint] [providers.nomad.endpoint]
address = "http://<< env "attr.unique.network.ip-address" >>:4646" address = "http://127.0.0.1:4646"
EOH EOH
destination = "${NOMAD_TASK_DIR}/config/traefik.toml" destination = "${NOMAD_TASK_DIR}/config/traefik.toml"
} }