https://my.oschina.net/u/1538135/blog/679848
http://blog.csdn.net/felix_yujing/article/details/52081524
创建app需要使用bridge模式,三端口[containerPort | hostPort | servicePort],通过标签[Labels]上组信息让marathon-lb查找定位。
该容器中应用的端口是80,投射到host上0端口即为随机分配端口,marathon-lb会去收集这些端口并最终在代理节点的servicePort上对外提供服务,这种方式要求网络模式必须为Bridge
Labels标签是让marathon-lb发现该app的关键,这里设置为
HAPROXY_GROUP=external
所以后面使用marathon-lb.py脚本的时候要加上--group external参数
http://blog.sina.com.cn/s/blog_6f2d2e310102wisi.html
marathon上部署marathon-lb服务发现与负载均衡
猜你喜欢
转载自rd-030.iteye.com/blog/2369724
今日推荐
周排行