Skip to content

Instantly share code, notes, and snippets.

@maauso
Last active June 28, 2016 14:20
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 maauso/fbf12f4f197081ecffd1b1bb67fdbebf to your computer and use it in GitHub Desktop.
Save maauso/fbf12f4f197081ecffd1b1bb67fdbebf to your computer and use it in GitHub Desktop.
{
"id": "/qa/marathon-lb-test",
"cmd": "/marathon-lb/run sse --marathon http://marathon.company.com:8080 --group test --health-check",
"cpus": 1,
"mem": 1024,
"disk": 0,
"instances": 1,
"ports": [
80, 443, 9090
],
"requirePorts" : true,
"constraints": [
[
"dc",
"CLUSTER",
"qatest"
],
[
"hostname",
"UNIQUE"
]
],
"container": {
"type": "DOCKER",
"volumes": [],
"docker": {
"image": "mesosphere/marathon-lb",
"network": "HOST",
"privileged": false,
"parameters": [
{
"key": "publish",
"value": "9090:9090"
}
],
"forcePullImage": false
}
},
"env": {
"SERVICE_9090_CHECK_HTTP": "/_haproxy_health_check",
"SERVICE_9090_CHECK_INTERVAL": "15s",
"SERVICE_9090_CHECK_TIMEOUT": "3s",
"SERVICE_NAME": "lb-qa"
},
"healthChecks": [
{
"protocol": "COMMAND",
"command": { "value": "/bin/bash -c \\\"</dev/tcp/$HOST/$PORT2\\\"" }
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment