-
-
Notifications
You must be signed in to change notification settings - Fork 466
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
[Feature] add ability to set docker labels on worker nodes #163
[Feature] add ability to set docker labels on worker nodes #163
Conversation
Hi @lionelnicolas , thank you for contributing! |
@iwilltry42 That's a good point. I put We could use My initial thought was that the existing Other suggestion, the
So maybe we could use Please tell me what you prefer, and I'll make the changes 😉 |
@lionelnicolas , nah, let's stick with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested it locally and it works perfectly fine for me. Just left some comments that need some clarification :)
Especially it could be cool to have this feature working with our node-selectors, so that you can apply labels to selected nodes and especially also to the master node.
fe429b3
to
080e6c4
Compare
@iwilltry42 I've just pushed node-selector support 😉
Node specifier values are the same as
Note: It's not possible to combine multiple specifiers (ie. |
fbaac5b
to
de0a925
Compare
de0a925
to
739486e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! I tested many different cases any it works perfectly fine for me 👍
Only confusing case could be for someone trying to use multiple node specifiers on a label, where only the last one (correctly) would be interpreted as an actual node-specifier (as you stated in your last comment).
But this can be added to the Docs or FAQ if there is need 👍
Thanks a lot for your contribution :)
Some service discovery systems are using docker labels to configure DNS, load-balancing, monitoring, metering ... (ie. dalidock , traefik ...).
This PR introduce ability to set arbitrary docker labels for worker nodes using a new
--label
argument tok3s create
andk3d add-node
.