Skip to content

Instantly share code, notes, and snippets.

@rodrickbrown
Created May 31, 2016 19:37
Show Gist options
  • Select an option

  • Save rodrickbrown/10b53b178f3a594eb8973bf058263f17 to your computer and use it in GitHub Desktop.

Select an option

Save rodrickbrown/10b53b178f3a594eb8973bf058263f17 to your computer and use it in GitHub Desktop.
{
"id": "/production/haproxy/marathon-lb-test",
"args": [ "-s", "--group", "production", "-m", "prod-mesos-m-1.aws.orchardplatform.com:8080", "--health-check" ],
"cpus": 0.5,
"mem": 4096,
"instances": 1,
"constraints": [
[
"hostname","UNIQUE"
],
[
"rack", "LIKE", "sparkr"
]
],
"requirePorts": true,
"portDefinitions": [
{ "port": 0, "protocol": "tcp", "name": "haproxystats" }
],
"labels":{
"HAPROXY_0_VHOST":"prod-rstudio-1.aws.orchardplatform.com"
},
"container": {
"type": "DOCKER",
"docker": {
"image": "mesosphere/marathon-lb:latest",
"privileged": true,
"forcePullImage": true,
"network": "BRIDGE",
"portMappings": [
{ "containerPort": 9090, "hostPort": 0, "servicePort": 0, "protocol": "tcp" }
]
},
"volumes": [
{
"containerPath": "/marathon-lb/templates",
"hostPath": "/opt/haproxy",
"mode": "RO"
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment