Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

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

Select an option

Save rodrickbrown/d169cfbbb1e7c418fb3fef5e847fd363 to your computer and use it in GitHub Desktop.
marathon-lb
{
"id": "/production/haproxy/marathon-lb",
"cpus": 0.5,
"mem": 4096,
"instances": 1,
"constraints": [
[
"hostname","UNIQUE"
],
[
"rack", "LIKE", "sparkr"
]
],
"requirePorts": true,
"portDefinitions": [
{ "port": 0, "protocol": "tcp", "name": "haproxy0" },
{ "port": 1, "protocol": "tcp", "name": "haproxy1" }
],
"labels":{
"HAPROXY_GROUP":"production"
},
"container": {
"type": "DOCKER",
"docker": {
"image": "mesosphere/marathon-lb:latest",
"forcePullImage": true,
"network": "BRIDGE",
"portMappings": [
{ "containerPort": 9090, "hostPort": 0, "servicePort": 0, "protocol": "tcp" },
{ "containerPort": 31806, "hostPort": 0, "servicePort": 0, "protocol": "tcp" }
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment