QubitProducts / bamboo

HAProxy auto configuration and auto service discovery for Mesos Marathon
Apache License 2.0
794 stars 215 forks source link

How to support the dynamic ip and port for web container by bamboo #207

Open jaminlai opened 8 years ago

jaminlai commented 8 years ago

hi, we deploy web container by marathon with bridge network, so that the container ip and service port would be changed when re-deployed or restart.

However, in practice it seems couldn't to get the container ip and service port by bamboo, so that it cann't write the info to haproxy.cfg which i expected.

It seems bamboo write the haproxy.cfg with the host ip and host bridge port but not the container ip and port such as 8080 in tomcat

Is it bamboo couldn't get the service port or container port such as 8080?

Thanks

wangcaichao commented 8 years ago

if you want get container port or ip ,you shoud use the env or api to try,but they provide service just use host ip and port.

j1n6 commented 8 years ago

@jaminlai It seems like you need to modify the template so that the container networking feature can be utilized (instead of the host ip)