d2iq-archive / mesos-dns

DNS-based service discovery for Mesos.
https://mesosphere.github.com/mesos-dns
Apache License 2.0
483 stars 137 forks source link

marthon 1.7 mesos-dns default json #533

Closed f1-outsourcing closed 5 years ago

f1-outsourcing commented 5 years ago

Sorry for asking maybe the obvious I am having a test setup and just upgraded to mesos 1.7 and marathon 1.7. Marathon is now running as uid marathon. And I have probably problems launching the mesos-dns because of the low port 53 in the mesos-dns.json. (If I change it to 2053 it deploys)

How should I resolve this issue? I guess I need to have the 53 port.

j3k0 commented 5 years ago

@f1-outsourcing did you found a solution?

f1-outsourcing commented 5 years ago

yes run as root, all ports below 1024 require it, otherwise you need to do something with port forwarding etc etc.

{
  "id": "mesos-dns",
  "user": "root",
  "cmd": "/usr/local/sbin/mesos-dns -config=/etc/mesos-dns/config.json",
  "cpus": 0.2,
  "mem": 256,
  "instances": 1,
  "constraints": [["hostname","CLUSTER","m01.local"]],
  "acceptedResourceRoles": ["*"],
  "healthChecks": [
    {
      "protocol": "MESOS_TCP",
      "port": 8123,
      "gracePeriodSeconds": 120,
      "intervalSeconds": 10,
      "timeoutSeconds": 10,
      "maxConsecutiveFailures": 3
    }
  ]
}