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

Allow node-role labeling #580

Closed
paulbsch opened this issue Feb 25, 2019 · 3 comments
Closed

Allow node-role labeling #580

paulbsch opened this issue Feb 25, 2019 · 3 comments
Labels
area/nodegroup help wanted Extra attention is needed kind/feature New feature or request

Comments

@paulbsch
Copy link
Contributor

Why do you want this feature?
In our use case, we utilize node-role.kuberneties.io/{role-name} labels. It is also useful for identifying nodes in the cluster when using tools like kubectl. Example:

$ kubectl get nodes
NAME                                           STATUS    ROLES             AGE       VERSION
ip-192-168-66-184.us-west-2.compute.internal   Ready     jarvice-compute   37m       v1.11.5
ip-192-168-71-24.us-west-2.compute.internal    Ready     jarvice-compute   37m       v1.11.5
ip-192-168-75-4.us-west-2.compute.internal     Ready     jarvice-system    37m       v1.11.5

Currently, eksctl doesn't allow any label matching the kubernetes.io domain. This makes perfect sense with respect to labels that should be immutable ("kubernetes.io/arch", kubernetes.io/hostname", etc.) However, node role labels don't seem to fall into that category.

What feature/behavior/change do you want?
Please alllow node role labeling. i.e. node-role.kubernetes.io/{role-name} e.g. node-role.kubernetes.io/compute

@errordeveloper
Copy link
Contributor

Do we currently return unknown 'kubernetes.io' or 'k8s.io' labels were specified kind of error?

It should be fairly easy to add node-role.kubernetes.io, would you like to try adding it yourself?

I believe it just needs to be added to the list of domain prefixes here:

https://github.com/weaveworks/eksctl/blob/2319fa8dd39c755bc2e296dff3bc36595da0b560/pkg/apis/eksctl.io/v1alpha4/validation.go#L68-L72

@errordeveloper errordeveloper added kind/feature New feature or request help wanted Extra attention is needed area/nodegroup labels Feb 25, 2019
paulbsch added a commit to nimbix/eksctl that referenced this issue Feb 26, 2019
@paulbsch
Copy link
Contributor Author

It does return that error, yes.

Adding that domain prefix solves the issue. I will submit a pull request.

@errordeveloper
Copy link
Contributor

Closed via #582.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/nodegroup help wanted Extra attention is needed kind/feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants