Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
{
"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