-
Notifications
You must be signed in to change notification settings - Fork 913
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
Question about etcd backend #204
Comments
Because that is what many tools expect. Full service metadata could be stored separately as well. |
Ah, that makes sense. If you don't mind here are a few questions as I just started using Registrator:
Thanks ahead of time! |
Mostly it's a convention people use with tools like conf.d etc. I can't really answer the second question. But we can track the feature request here: #175 |
If I understand this correctly, the skydns* backend don't support metadata?
Is this the expected behavior? |
@klausenbusk Yes, I believe that is the expected behavior. Right now etcd simply stores the IP and Port. You can always modify that behavior to store the entirety of the service metadata as pointed out above, but it could potentially break other programs that utilize registrar in the process (if you are using any of them). |
This make registrator so much less use full. The PR #76 will fix it (I think), through a little hacky. Hmm. Then I just code my own fleet register service.. :/ |
To whom it may concern,
Is there a reason you are storing just the dockerip:dockerport in the etcd key value store instead of the entire service information like you do with Consul? I made a few modifications to the etcd.go file to store the service in JSON and was wondering if there was a specific reason that wasn't being done by default.
Example in running off of a locally hosted CoreOS cluster on Vagrant:
Current Behavior:
core@core-01 ~/registrator $ etcdctl get /original/cAdvisor/core-01:cadvisor:8080
10.1.0.18:8080
Modified Behavior:
core@core-01 ~ $ etcdctl get /services/cAdvisor/core-01:cadvisor:8080
{"ID":"core-01:cadvisor:8080","Name":"cAdvisor","Port":8080,"IP":"10.1.0.16","Tags":["version=1.4.3","maintainer=jbkc85@gmail.com"],"Attrs":{},"TTL":0,"Origin":{"HostPort":"8080","HostIP":"10.1.0.16","ExposedPort":"8080","ExposedIP":"10.1.0.17","PortType":"tcp","ContainerHostname":"a8b0c13e2f1f","ContainerID":"a8b0c13e2f1ff21b2d2b29c11805dd22fd008dbea96b700f5ff5a0e08e826d0f"}}
If you find this useful let me know and I can initiate a pull request!
Thanks,
Jason Cameron
The text was updated successfully, but these errors were encountered: