gliderlabs / registrator

Service registry bridge for Docker with pluggable adapters
http://gliderlabs.com/registrator
MIT License
4.66k stars 912 forks source link

Handle SERVICE_<port>_<type>_<metadata> encodings #668

Open pmundt opened 5 years ago

pmundt commented 5 years ago

At present SERVICE detection fails to account for the port type, which prevents selective filtering - e.g. of specific TCP or UDP ports for individual services.

We can fix this up by scanning for a port type designation and comparing this against the service port's type definition before determining how to proceed.

With this in place, we can now use any of:

SERVICE_xxx_TCP_IGNORE SERVICE_xxx_TCP_NAME SERVICE_xxx_UDP_IGNORE SERVICE_xxx_UDP_NAME ...

for manipulating port-specific service metadata.

This should address issue #244