mesos-dns icon indicating copy to clipboard operation
mesos-dns copied to clipboard

Document port name query

Open gianluca-sabena opened this issue 9 years ago • 0 comments

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

gianluca-sabena avatar Oct 12 '16 07:10 gianluca-sabena