+Jason Kölker <jkoel...@d2iq.com>

On Mon, Jul 27, 2020 at 1:38 PM Marc Roos <m.r...@f1-outsourcing.eu> wrote:

>
> Is there a way to identify the correct port via dns? I have created a
> task with two ports[1]. But a dns srv query does not show anything
> different than the port number. How can I identify the correct port?
> Mesos-master tasks endpoint[3] shows the port names, is there a way to
> get these from dns?
>
>
> [1]
> "networks": [ { "mode": "host"} ],
> "portDefinitions": [{"port": 0, "name": "https",  "protocol": "tcp"},
> {"port": 0, "name": "metrics",  "protocol": "tcp"}]
>
>
> [2]
> [@test2 image-synapse]$ dig +short @192.168.10.14
> _synapse.dev._tcp.marathon.mesos SRV
> 0 1 31031 synapse.dev-nppzf-s0.marathon.mesos.
> 0 1 31032 synapse.dev-nppzf-s0.marathon.mesos.
>
>
> [3]
> mesos-master /tasks/
>
>       "discovery": {
>         "visibility": "FRAMEWORK",
>         "name": "synapse.dev",
>         "ports": {
>           "ports": [
>             {
>               "number": 31031,
>               "name": "https",
>               "protocol": "tcp"
>             },
>             {
>               "number": 31032,
>               "name": "metrics",
>               "protocol": "tcp"
>             }
>           ]
>         }
>       },
>
>

Reply via email to