Comments (13)
Same for me - I'd like to get rid of the overhead for running consul-agent on the whole coreos cluster.
Registrator would be the perfect fit since it's located on all machines anyway.
from registrator.
Tried multiple times and this always happens if I register against a consul server IP. I was only able to get registrator to work by using the docker socket IP and also running the consul-agent in a sidecar container
from registrator.
I noticed the same behavior and it appears to be intentional. If you look at the consul registration code it only creates a "service" entry via the target consul agent. From what I can tell (though I'm hardly a consul expert) this type of entry does not have an associated IP address, rather it is associated with a "node" in consul which is what holds the Host/IP of the service. When you register a service directly with the agent that agent becomes the service's node -- thus any service you register will appear as if it is running on the agent's host. As a result you need to do what you suggest and run a consul sidecar on every host where you register Docker services.
From what I can tell it would be possible for the registration code to register both a Node and a Service so that even hosts without a consul agent could contain services. Doing so (or providing the option to do so) would make it work more like SkyDNS/Etcd both of which do register host and port.
from registrator.
Do you have any eta for this ?
Thanks.
from registrator.
Im trying to loadbalance between dockers on the same host, is it possible to advertise the docker ip in any way?
from registrator.
@fliphess you can do something like that using the -internal
switch when using etcd as a backend. But at the moment, Consul will only register services under its IP.
from registrator.
I've made a kind of solution, it is testable.
Github: https://github.com/enpassant/registrator
Docker: https://registry.hub.docker.com/u/enpassant/registrator/
from registrator.
Did merging PR #93 fix this then?
from registrator.
What was the outcome of this? Due to the bug with docker/consul and arp caching I've got to run my consul instance with -net=host
. Now all of my docker containers get registered with the private ip of the docker host, rather than the private ip of the docker containers.
moby/moby#4581
gliderlabs/docker-consul#26
from registrator.
It seems that this registrator aims at register service at local agent, so maybe you need to run a agent on 10.10.2.55
and change the registrator url to consul://10.10.2.55:8500
from registrator.
Yeah, you should either run the Consul agent locally (it's intended to be run on all hosts), but I believe the latest version will use the IP that Registrator determines (which is best set with -ip
).
See docs:
http://gliderlabs.com/registrator/latest/user/run/
Reopen if still an issue.
from registrator.
I am seeing this occur even if registrator has the -ip
flag set.
from registrator.
Same problem here, also with -ip flag - works fine when using local consul.
from registrator.
Related Issues (20)
- Not able to get POD IP for registration in EKS
- unsupported protocol scheme ""
- Cannot unmarshal number into Go value of type string HOT 1
- Support for newer versions of Consul HOT 10
- Support for 3.x version of etcd HOT 2
- Dead link in website
- cannot connect to Docker endpoint
- Unregister on 'stop'
- Health checks with SERVICE_CHECK_SCRIPT doesn't work HOT 1
- Possible bug (or by-design behavior) of using IPv6 addresses to register TCP health check to `Consul`?
- http://gliderlabs.com/ is down HOT 1
- Image docker.io/gliderlabs/registrator:latest uses outdated schema1 manifest format HOT 2
- Require image for ARM64 architecture HOT 3
- gliderlabs.com is down HOT 1
- All service names start with sha265 when containers are started with the new compose-cli HOT 3
- Takeover the project HOT 7
- I would like to add support for excluding some containers
- Not an issues | Registrator Updated / Fork HOT 2
- Fork of this project and an open invitation to participate. HOT 1
- Registrator not picking the events everytime
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from registrator.