Skip to content

Instantly share code, notes, and snippets.

@bergerx
Created July 1, 2015 13:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bergerx/0b64f90cc66d666519fe to your computer and use it in GitHub Desktop.
Save bergerx/0b64f90cc66d666519fe to your computer and use it in GitHub Desktop.
mesos-dns-marathon.json
{
"cpus": 0.1,
"mem": 102,
"id": "mesos-dns",
"instances": 1,
"constraints": [["hostname", "CLUSTER", "192.168.0.23"]],
"env": {
"MESOS_DOCKER_ZK": "zk://192.168.0.23:2181,192.168.0.26:2181,192.168.0.27:2181/mesos",
"MESOS_DNS_MASTERS": "192.168.0.23:5050,192.168.0.26:5050,192.168.0.27:5050",
"MESOS_DNS_RESOLVERS": "8.8.8.8",
"MESOS_DNS_REFRESHsECONDS": "10",
"MESOS_DNS_TTL": "10",
"MESOS_DNS_HTTPON": "false"
},
"container": {
"type": "DOCKER",
"docker": { "image": "bergerx/mesos-dns" }
},
"healthChecks": [{
"protocol": "COMMAND",
"command": { "value": "dig +short leader.mesos @$HOST | grep ." }
}],
"upgradeStrategy": {
"minimumHealthCapacity": 0,
"maximumOverCapacity": 0
}
}
@ekesken
Copy link

ekesken commented Jul 1, 2015

  {
    "cpus": 0.1,
    "mem": 50,
    "id": "mesos-dns",
    "instances": 1,
    "constraints": [["hostname", "CLUSTER", "172.29.0.8"]],
    "env": {
      "MESOS_DOCKER_ZK": "zk://172.29.0.5:2181,172.29.0.6:2181,172.29.0.7:2181/mesos",
      "MESOS_DNS_MASTERS": "172.29.0.5:5050,172.29.0.6:5050,172.29.0.7:5050",
      "MESOS_DNS_RESOLVERS": "8.8.8.8",
      "MESOS_DNS_REFRESHSECONDS": "10",
      "MESOS_DNS_TTL": "10",
      "MESOS_DNS_HTTPON": "false"
    },
    "container": {
      "type": "DOCKER",
      "docker": { "image": "bergerx/mesos-dns" }
    },
    "healthChecks": [{
      "protocol": "COMMAND",
      "command": { "value": "dig +short leader.mesos @$HOST | grep ." }
    }],
    "upgradeStrategy": {
      "minimumHealthCapacity": 0,
      "maximumOverCapacity": 0
    }
  }

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