Post on 28-Jul-2018
dcospackageinstallmarathon-lb
http://<publicagentip>:9090/haproxy?stats
options.json
{"marathon-lb":{"name":"marathon-lb-internal","haproxy-group":"internal","bind-http-https":false,"role":""}}
dcospackageinstall--options=options.jsonmarathon-lb
nginx-external.json
{"id":"nginx-external","container":{"type":"DOCKER","docker":{"image":"nginx:1.7.7","network":"BRIDGE","portMappings":[{"hostPort":0,"containerPort":80,"servicePort":10000}],"forcePullImage":true}},"instances":1,"cpus":0.1,"mem":65,"healthChecks":[{"protocol":"HTTP","path":"/","portIndex":0,"timeoutSeconds":10,"gracePeriodSeconds":10,"intervalSeconds":2,"maxConsecutiveFailures":10}],"labels":{"HAPROXY_GROUP":"external"}}
dcosmarathonappaddnginx-external.json
HAPROXY_GROUP
--group external
{"id":"nginx-internal","container":{"type":"DOCKER","docker":{"image":"nginx:1.7.7","network":"BRIDGE","portMappings":[{"hostPort":0,"containerPort":80,"servicePort":10001}],"forcePullImage":true}},"instances":1,"cpus":0.1,"mem":65,"healthChecks":[{"protocol":"HTTP","path":"/","portIndex":0,"timeoutSeconds":10,"gracePeriodSeconds":10,"intervalSeconds":2,"maxConsecutiveFailures":10}
],"labels":{"HAPROXY_GROUP":"internal"}}
{"id":"nginx-everywhere","container":{"type":"DOCKER","docker":{"image":"nginx:1.7.7","network":"BRIDGE","portMappings":[{"hostPort":0,"containerPort":80,"servicePort":10002}],"forcePullImage":true}},"instances":1,"cpus":0.1,"mem":65,"healthChecks":[{"protocol":"HTTP","path":"/","portIndex":0,"timeoutSeconds":10,"gracePeriodSeconds":10,"intervalSeconds":2,"maxConsecutiveFailures":10}],"labels":{"HAPROXY_GROUP":"external,internal"
}}
ports
curl
curlhttp://marathon-lb.marathon.mesos:10000/curlhttp://marathon-lb-internal.marathon.mesos:10001/curlhttp://marathon-lb.marathon.mesos:10002/curlhttp://marathon-lb-internal.marathon.mesos:10002/
ilovesteak.com steaknow.com
InService
Description brenden-j-PublicSl-1LTLKZEH6B2G6-1145355943.us-west-2.elb.amazonaws.com
{"id":"nginx-external","container":{"type":"DOCKER","docker":{"image":"nginx:1.7.7","network":"BRIDGE","portMappings":[{"hostPort":0,"containerPort":80,"servicePort":10000}],"forcePullImage":true}},"instances":1,"cpus":0.1,"mem":65,"healthChecks":[{"protocol":"HTTP","path":"/","portIndex":0,"timeoutSeconds":10,"gracePeriodSeconds":10,"intervalSeconds":2,"maxConsecutiveFailures":10
}],"labels":{"HAPROXY_GROUP":"external","HAPROXY_0_VHOST":"brenden-j-publicsl-1ltlkzeh6b2g6-1145355943.us-west-2.elb.amazonaws.com"}}
HAPROXY_0_VHOST0