我有一个带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 ALB知道Traefik是健康的并且在服务?