I have a consul Datacenter in an EKS cluster that I need to have ECS services register as well. I thought a loadbalancer in front of the Consul service would work but the agents get this message:
Multiple private IPv4 addresses found. Please configure one with ‘bind’ and/or ‘advertise’.
Is there a better aproch or am I missing something. here is the agent config:
addresses = {
dns = “127.0.0.1”
grpc = “127.0.0.1”
http = “127.0.0.1”
}
advertise_addr = “x.x.x.62”
advertise_reconnect_timeout = “15m”
client_addr = “0.0.0.0”
datacenter =“dcXXXXX”
enable_central_service_config = true
leave_on_terminate = true
ports {
grpc = 8502
}
retry_join = [
“consul.example.com”
]
services
{name = “haproxy”
port = 8404
address = “x.x.x.62”
tags = [“XXXX_container”,“stg”]}