Hi, I wanted to (c)lean up my consul service registry and hide some ports allocated by mesos.
My use case is that some of the service have 2 or more ports assigned to them but only one is used for external communication; other ports are used for clustering or deduplication for same service instances.
--service-port-label =string setting denotes mesos label that indicates which of service ports to expose to consul. string should contain a list of ints (comma separated) that map to port index, e.g.:
Hi, I wanted to (c)lean up my consul service registry and hide some ports allocated by mesos.
My use case is that some of the service have 2 or more ports assigned to them but only one is used for external communication; other ports are used for clustering or deduplication for same service instances.
--service-port-label =string setting denotes mesos label that indicates which of service ports to expose to consul. string should contain a list of ints (comma separated) that map to port index, e.g.:
mesos-consul
mesos:
Mesos deploy (we are using Singularity scheduler, but similar/same should exists for Marathon):
This configuration would only expose PORT0 and PORT1 to consul and leave PORT2 off it.