You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am running docker registry via nomad, with 0.1.0 I had gliderlabs/registrator running on all the nomad client nodes and registering any containers to consul based on their SERVICE_NAME env variables.
So the registry had SERVICE_NAME=registry and all the registry servers were thus available at registry.service.consul. Now after updating to nomad 0.2.0 and replacing the registrator container with the service {} block in the task, if naming the service "registry" it will be available in the dns as docker-registry-servers-registry-registry.service.consul instead of registry.service.consul.
I tried to work around this by adding an external service alias "registry" to the jodocker-registry-servers-registry-registry.service.consul to create an CNAME for it but apparently consul does not know to recurse the .consul names to itself from external service definition (even with --recursor 127.0.0.1:8600) so resolving registry.service.consul will not work ( hashicorp/consul#1228 ).
What is the correct way to get the docker registry container running at registry.service.consul using the service {} block along with consul, or is the correct way to re-tag all the images in the registry as "docker-registry-servers-registry-registry.service.consul:5000" instead and start using the job-group-task-name.service.consul names in all discovery.
Here is the jobspec template I am currently using with terraform to deploy the registry job
The text was updated successfully, but these errors were encountered:
Nomon
changed the title
Specifying service names without job/group/task names
Specifying consul service names without job/group/task names
Nov 25, 2015
I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
I am running docker registry via nomad, with 0.1.0 I had gliderlabs/registrator running on all the nomad client nodes and registering any containers to consul based on their SERVICE_NAME env variables.
So the registry had SERVICE_NAME=registry and all the registry servers were thus available at registry.service.consul. Now after updating to nomad 0.2.0 and replacing the registrator container with the service {} block in the task, if naming the service "registry" it will be available in the dns as docker-registry-servers-registry-registry.service.consul instead of registry.service.consul.
I tried to work around this by adding an external service alias "registry" to the jodocker-registry-servers-registry-registry.service.consul to create an CNAME for it but apparently consul does not know to recurse the .consul names to itself from external service definition (even with --recursor 127.0.0.1:8600) so resolving registry.service.consul will not work ( hashicorp/consul#1228 ).
What is the correct way to get the docker registry container running at registry.service.consul using the service {} block along with consul, or is the correct way to re-tag all the images in the registry as "docker-registry-servers-registry-registry.service.consul:5000" instead and start using the job-group-task-name.service.consul names in all discovery.
Here is the jobspec template I am currently using with terraform to deploy the registry job
The text was updated successfully, but these errors were encountered: