Last active
June 28, 2016 14:20
-
-
Save maauso/fbf12f4f197081ecffd1b1bb67fdbebf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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