Skip to content

Multiple private IPs - set advertise address #258

@neuroserve

Description

@neuroserve

I don't know, whether this is a variant of issue #226 but in environments with containers having multiple nics with rfc1918 addresses, consul-agent cannot decide to which of the nics it should bind in order to talk to the consul-master/cluster:

"Error starting agent: Failed to get advertise address: Multiple private IPs found. Please configure one. [/usr/local/bin/consul agent -data-dir=/data -config-dir=/config -rejoin -retry-join consul.cluster -retry-max 10 -retry-interval 10s] exited: exit status 1"

Is there an easy way to determine the respective ip address and configure consul-agent accordingly?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions