-
-
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 --labels flags to add a labels to a node #578
Comments
I'm a volunteer to do this btw 🙋🏻♂️😉 |
Hi @developer-guy , thanks for opening this feature request 👍
I'll be more than happy to accept your PR :) |
Actually was wondering why neither |
Hi @ejose19 👋
|
Hello @iwilltry42, thanks for clarifying |
@iwilltry42 I opened a pull request btw, thank you 😋🙋🏻♂️🎉 |
@developer-guy I've checked your PR at it clearly says Would it pick labels from |
yeah, exactly, "k3s" has a flag called "--node-label" in order to add labels to the nodes while provisioning, so, with this PR we add this support to the k3d. You should specify the "--labels" flag while issuing the command "k3d node create". |
Then I clearly misunderstood what you wrote in the issue text, sorry 🤔 |
How can I explain it better? Would you like to give me a suggestion? |
I'm really in favor of using Related: I was trying to test your PR but it seems something is broken with native
This also happens on latest EDIT: @iwilltry42 Upon inspecting |
I misunderstood your following line to be referring to docker labels.
Agree Regarding your error: did you set |
@iwilltry42 yes, good that you also submitted @developer-guy I was able to test your PR and it works correctly. It would be great if the flag was also available at I see the label flags as this:
That should be good for all cases and consistently named. Will test your PR once you push new changes. |
so, I need to separate the label flag for the container and node like the following: And I should also add this support for both cluster and node commands, am I right? |
That's how I see it, @iwilltry42 what do you think? |
@ejose19 are you aware of the followings flags that are being already available for the command
We can use these flags to specify node labels while we are provisioning the cluster, but what I'm trying to do with this PR is that there is support for this in the |
@developer-guy Yes I'm aware, but the issue with these flags is that they apply to all The logic is already implemented by #378 so I'm sure a lot of it can be taken from there, but if you only want to submit for |
@ejose19 Yeah sure, thanks for the PR that you mention, I might take some of the codes from there, yes, I only want to add this support for |
@ejose19, is there anything you want us to do? |
Hello @developer-guy, I'm not a maintainer so only @iwilltry42 is allowed to merge your PR, I will do a follow-up PR after yours is merged to implement the equivalent for |
@iwilltry42 wdyt? Anything that you want us to do? |
Hey 👋 |
No worries 🙋🏻♂️, of course, @iwilltry42, we can do that, @Dentrax would you like to change the flag? |
so was directed here by a search... I want to add labels to my k3d nodes, so that deployments can be coded with a selector (similar to what I need to do in AWS EKS, spread across AZ's) |
Hi @georgelza , like so: |
... I'd prefer to know how we can add this as a label to the config file, adding a label to each set of nodes. G |
You may want to checkout the docs: https://k3d.io/v5.4.1/usage/configfile/ the config key is |
Is your feature request related to a problem or a Pull Request
I would like to add labels to my nodes while adding them to a running cluster.
Scope of your request
--labels
flag tok3d node create
commandDescribe the solution you'd like
Add
--labels
flag tok3d node create
(and possibly others) that is passed down to docker without any modification.Describe alternatives you've considered
The text was updated successfully, but these errors were encountered: