我不明白如何将Eureka与Traefik整合在一起
我在traefik.log中收到错误:
无法为Provider构建配置,错误:strconv.ParseInt: 解析" 1522407483657":值超出范围
defaultEntryPoints = ["http"]
logLevel = "WARNING"
[traefikLog]
filePath = "traefik.log"
[accessLog]
filePath = "access.log"
[entryPoints]
[entryPoints.http]
address = ":8090"
[api]
entryPoint = "traefik"
dashboard = true
[eureka]
endpoint = "http://localhost:8761/eureka"
delay = "10s"
我不会'知道这个配置文件是否足够 但是当我将尤里卡与zuul融为一体时,没有任何问题。
如果我使用这个traefik.toml文件(不使用Eureka),那就可以了。 我该怎么办?
defaultEntryPoints = ["http"]
logLevel = "WARNING"
[traefikLog]
filePath = "traefik.log"
[accessLog]
filePath = "access.log"
[entryPoints]
[entryPoints.http]
address = ":8090"
[api]
entryPoint = "traefik"
dashboard = true
[file]
[frontends]
[frontends.frontend1]
backend = "backend1"
[frontends.frontend1.routes.test_1]
rule = "Host: localhost"
[backends]
[backends.backend1]
[backends.backend1.LoadBalancer]
method = "drr"
[backends.backend1.healthcheck]
path = "/health"
interval = "3s"
[backends.backend1.servers.server1]
url = "http://127.0.0.1:8081"
weight = 1
[backends.backend1.servers.server2]
url = "http://127.0.0.1:8082"
weight = 1
[backends.backend1.servers.server3]
url = "http://127.0.0.1:8083"
weight = 1