Skip to content
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

Adding a service w IP different from localhost / consul 0.4.1 #950

Closed
dynnamitt opened this issue May 18, 2015 · 3 comments
Closed

Adding a service w IP different from localhost / consul 0.4.1 #950

dynnamitt opened this issue May 18, 2015 · 3 comments

Comments

@dynnamitt
Copy link

When adding a service w IP different from localhost, like this

{
    "service": {
            "id" : "redis-master",
            "name": "redis",
            "tags": ["redis","db"],
            "Address" : "10.133.172.216",
            "port": 6379
    }
}

It always REWRITES address to whatever localhost / private_ip points at...
I'm using version 0.41 and just one consul instance (... -server -bootstrap-expect 1 -bind=0.0.0.0 )

Is this to be expected.. will 0.5 work different?

Maybe IPs in "Address" values need a running consul agent to be accepted, but if so PLEASE document this better here https://www.consul.io/docs/agent/services.html

@dynnamitt
Copy link
Author

Rephrased issue:
Cannot register service address outside of consul cluster in version 0.4.1

@highlyunavailable
Copy link
Contributor

The ability to use service-specific addresses was added in 0.5.0, it is not present in 0.4.1.

https://github.com/hashicorp/consul/blob/master/CHANGELOG.md

Also, the docs are for the current version (0.5.1).

One oddity in Consul configs: any parameter that isn't a "known" one is silently ignored.

@dynnamitt
Copy link
Author

Thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants