Skip to content
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

Is it possible to set arbitrary labels on containers, and access them in the haproxy config template? #191

Open
pkaeding opened this issue Jul 14, 2016 · 2 comments

Comments

@pkaeding
Copy link

Maybe this is possible already, or maybe this is a feature request. I'd like to be able to add arbitrary key/values on my containers, and then access them in the template that generates the HAProxy configuration.

If this is already possible, can you give me some pointers as to how I can do this?

@ehazlett
Copy link
Owner

No this is not implemented today. What are you trying to do?

@pkaeding
Copy link
Author

I need to set a header for requests that are going to one of my containers. One idea was to just compare $host.ContextRoot.Name, but it would be more flexible if I could add a label indicating the header value.

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

No branches or pull requests

2 participants