Skip to content

Add containerid in the service tags #471

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yanndegat
Copy link

A docker container can use service discovery tools to build up its configuration files.
For instance, some kind of service has to build the list of its peers, minus itself.
It is then useful to be able to filter nodes based on an criteria, like a unique id.

The only available id within a container being the "containerid", returned by "hostname",
this PR adds the containerid in the servicetags filed to be able to filter when querying the service discovery service.

It could have been added to the "serviceId" schema, but it would then lead to backward compatibility issues

@missedone
Copy link

this is a nice enhancement to have, please consider to merge. thx.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants