-
Notifications
You must be signed in to change notification settings - Fork 781
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
Can't grab instances that service.Name include "." #1205
Comments
To reproduce this I created a small config file for the service...
Registered it...
Then ran consul-template and got the same results as you...
If I switch the dots to dashes though, it works.
Registered it like above, and ran the template and it worked...
I know consul's DNS interface doesn't like service names with dots in them and it might be related. Haven't dug into the code yet, just wanted to note how I reproduced it at this point. |
I'm labeling as a bug for the moment but if it ends up that it is using consul in a way that it is hitting this DNS limitation then it will probably change to a documentation issue. |
Found the problem and I think this is going to change to a documentation issue. Names with dots/periods ('.') in them won't work properly with the template format as it uses the dot for a separator. Snipped from the service api functions section in the readme...
Notice the dot between the tag and name, There is no way to fix this in the code with that delimiter being what it is, so I'm going to make this issue a documentation issue to make sure to call that out. |
Consul include two services:
Configuration
Consul Template configuration file(app.ctmpl):
Shell
nginx.conf
why instances of "go.micro.api.greeter" is not be found?
The text was updated successfully, but these errors were encountered: