- "traefik.http.services.myservice.loadbalancer.server.port=8080"
but How to specify server in consul catalog? like this?
- "traefik.http.services.myservice.loadbalancer.server=32.23.23.23"
but How to specify server in consul catalog? like this?
Hello,
the IP is detect automatically from Consul Catalog information.
If needed you can specify the port or the scheme:
traefik.http.services.myservice.loadbalancer.server.port=8080
traefik.http.services.myservice.loadbalancer.server.scheme=http
how to set host in Consul Catalog information ????????/
Consul Catalog contains information to connect to your service, Traefik consume thos data so you don't need to manually define the IP/host of your service.
To route to your service, you have to create a the rule of the router:
traefik.http.routers.myrouter.rule=Host(`mydomain.com`)
can you add an ip to the Host(10.x.x.x
)?