-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consul binds with private ip along with loopback ip #2330
Comments
@buro1983 -- a month later, but I assume you have figured out the issues. I suspect it was pretty difficult to talk to a server bound to LO, but perhaps you had some other magic on the box. Ready to close this? |
@buro1983 you may want to give the latest code in
Very few people should need to do anything as obscene as shown in the last example, but the functionality is there should you need it. With the
There is now a configurable template language for examples and docs) behind this that you can use to create a customizable heuristic that should allow you to get whatever it is that you need from your environment when using an immutable image (see hashicorp/go-sockaddr/template and cmd/sockaddr. |
consul version
for both Client and Serverconsul info
for ServerServer config:
Operating system and Environment details
Description of the Issue (and unexpected/desired result)
I have configured more than one private ips on our box (10.131.X.X) along with loop back ip. Consul config has bind address as 127.0.0.1 but consul is trying to bind with first private ip along with loopback ip. peers.json has entry for both because of that consul is not able to select cluster leader. Consul selects leader once I manually remove wrong entry from peers.json. But is does not give guarantee that this will not happen on restart of consul.
I have got another similar issue (#928) and it is mentioned as fixed. Can anyone please point me out what I am doing wrong.
The text was updated successfully, but these errors were encountered: