Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants