AWS ALB Health Check无法在Traefik后面提供服务

时间:2019-05-07 10:24:41

标签: amazon-web-services docker amazon-elb traefik

我有一个带80端口的TG(目标组)。EC2已向安装了Traefik的TG注册。以下是我的traefik.toml文件:

debug = false
logLevel = "ERROR"

defaultEntryPoints = ["http", "https"]

[web]
address = ":8080"

[entryPoints]
  [entryPoints.http]
    address = ":80"
  [entryPoints.https]
    address = ":443"

[retry]
[ping]

[docker]
  endpoint = "unix:///var/run/docker.sock"
  watch = true
  exposedByDefault = false

如果我curl localhost:8080/ping,则返回200 OK。我在AWS ALB中配置的同一终端节点为:

AWS ELB Health Check

在这种情况下,运行状况检查失败。有没有一种方法可以让AWS ALB知道Traefik是健康的并且在服务?

0 个答案:

没有答案