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

Document port name query #478

Open
gianluca-sabena opened this issue Oct 12, 2016 · 0 comments
Open

Document port name query #478

gianluca-sabena opened this issue Oct 12, 2016 · 0 comments

Comments

@gianluca-sabena
Copy link

If you have a service with multiple ports it is possible to query a specific port. This allow to create a dns service discovery.

Document this feature here http://mesosphere.github.io/mesos-dns/docs/naming.html

marathon.json

...
     "portMappings": [
       {
         "containerPort": 9100,
         "hostPort": 0,
         "protocol": "tcp",
         "name": "http-metrics"
       },
       {
         "containerPort": 9000,
         "hostPort": 0,
         "protocol": "tcp",
         "name": "http-api"
       }
     ],
...

Query is like dig @mesos-dns _http-api._<task-name>._tcp.marathon.mesos

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

No branches or pull requests

2 participants