Skip to content

Instantly share code, notes, and snippets.

@jnonon
Last active February 8, 2016 20:23
Show Gist options
  • Save jnonon/af3d6735ab3bbaecea9f to your computer and use it in GitHub Desktop.
Save jnonon/af3d6735ab3bbaecea9f to your computer and use it in GitHub Desktop.
{
"id":"/mesos-consul-container",
"args":[
"--zk=zk://zookeeper.service.consul:2181/mesos",
"--log-level=WARN",
"--refresh=5s",
"--mesos-ip-order=host,docker",
"--healthcheck",
"--healthcheck-ip=0.0.0.0"
],
"user":null,
"instances":1,
"cpus":0.1,
"mem":256,
"disk":0,
"executor":"",
"constraints":[
],
"storeUrls":[
],
"ports":[
24474
],
"requirePorts":false,
"backoffSeconds":1,
"backoffFactor":1.15,
"maxLaunchDelaySeconds":3600,
"container":{
"type":"DOCKER",
"volumes":[
],
"docker":{
"image":"{YOUR}/{IMAGE}",
"network":"BRIDGE",
"portMappings":[
{
"containerPort":24476,
"hostPort":31113,
"servicePort":24474,
"protocol":"tcp"
}
],
"privileged":false,
"parameters":[
],
"forcePullImage":true
}
},
"healthChecks":[
{
"path":"/health",
"protocol":"HTTP",
"portIndex":0,
"gracePeriodSeconds":5,
"intervalSeconds":20,
"timeoutSeconds":20,
"maxConsecutiveFailures":3,
"ignoreHttp1xx":false
}
],
"dependencies":[
],
"upgradeStrategy":{
"minimumHealthCapacity":1,
"maximumOverCapacity":1
},
"labels":{
"tags":"tag1,tag2"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment