Hello,
I have Traefik 2.8.4 running in a Nomad 1.3.5 cluster. Traefik is running on every client machine along with Nomad.
However, Traefik can't connect to Nomad.
time="2022-09-06T12:36:37Z" level=error msg="Provider connection error failed to load initial nomad services: Get \"http://127.0.0.1:4646/v1/services\": dial tcp 127.0.0.1:4646: connect: connection refused, retrying in 6.225073274s" providerName=nomad
The configuration is:
"--api.dashboard=true",
"--api.insecure=true", ### For Test only, please do not use that in production
"--entrypoints.web.address=:${NOMAD_PORT_http}",
"--entrypoints.traefik.address=:${NOMAD_PORT_admin}",
"--entryPoints.http.transport.lifeCycle.requestAcceptGraceTimeout=15s",
"--entryPoints.http.transport.lifeCycle.graceTimeOut=10s",
"--entryPoints.https.address=:443",
"--providers.nomad=true",
"--entryPoints.https.transport.lifeCycle.requestAcceptGraceTimeout=15s",
"--entryPoints.https.transport.lifeCycle.graceTimeOut=10s",
"--providers.nomad.endpoint.address=http://127.0.0.1:4646", ### IP to your nomad server
This is a very basic barebones configuration right now, as a proof of concept, but any help would be greatly appreciated.
I did create a Github issue for this initially, but was suggested to create a forum post for it:
Nomad Provider Not Working · Issue #9302 · traefik/traefik (github.com)