Hacker News new | ask | show | jobs
by bogomipz 3525 days ago
Is your concern that you just want it to bind to another interface besides the first one(the default?) If so you can use the -advertise flag.

From the docs:

-advertise - The advertise address is used to change the address that we advertise to other nodes in the cluster. By default, the -bind address is advertised. However, in some cases, there may be a routable address that cannot be bound. This flag enables gossiping a different address to support this. If this address is not routable, the node will be in a constant flapping state as other nodes will treat the non-routability as a failure.

1 comments

My concern is that while running consul as a single docker container, it will completely get stuck in a follower state even though it's the only node in the cluster if the IP chnages on restart.

It is waiting for the previous IP, who was the leader, to join... My understanding is that it's not solved?

https://github.com/hashicorp/consul/issues/457

Or maybe I could set the reaping delay from 72h to 0 in that case.