You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are running our Kubernetes clusters with multiple different instance groups. It would be very nice if the nodes were automatically labeled with the name of the instance-group in the Kubernetes object. I have made my own workaround by adding sections like this to my InstanceGroups:
nodeLabels:
instancegroup: nodes-fast-cpu
This works fine, but it would be nice to not have to remember to manually add that section on each InstanceGroup.
Having this added automatically would make it possible to use node-affinities and node-selectors without having to add labels manually, and it also allows you to see which instances belong to which instance groups using kubectl get nodes --label-columns instancegroup like this:
Automatic merge from submit-queue.
Add a default NodeLabel with the InstanceGroup name
As requested in #2999, this change just auto-populates new InstanceGroup specs with a default node label containing the name of the instance group. It would be really useful for those of us managing environments with multiple instance groups.
It allows an admin to easily view the instance groups using kubectl:
```
kubectl get nodes --label-columns kops.k8s.io/instancegroup
NAME STATUS AGE VERSION INSTANCEGROUP
ip-172-20-108-120.eu-west-1.compute.internal Ready,node 3m v1.7.4 xtra-large
ip-172-20-117-133.eu-west-1.compute.internal Ready,master 14m v1.7.4 master-eu-west-1c
ip-172-20-32-139.eu-west-1.compute.internal Ready,master 14m v1.7.4 master-eu-west-1a
ip-172-20-32-92.eu-west-1.compute.internal Ready,node 12m v1.7.4 nodes
ip-172-20-67-184.eu-west-1.compute.internal Ready,master 13m v1.7.4 master-eu-west-1b
```
Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Prevent issues from auto-closing with an /lifecycle frozen comment.
If this issue is safe to close now please do so with /close.
Send feedback to sig-testing, kubernetes/test-infra and/or @fejta.
/lifecycle stale
We are running our Kubernetes clusters with multiple different instance groups. It would be very nice if the nodes were automatically labeled with the name of the instance-group in the Kubernetes object. I have made my own workaround by adding sections like this to my InstanceGroups:
This works fine, but it would be nice to not have to remember to manually add that section on each InstanceGroup.
Having this added automatically would make it possible to use node-affinities and node-selectors without having to add labels manually, and it also allows you to see which instances belong to which instance groups using
kubectl get nodes --label-columns instancegroup
like this:The text was updated successfully, but these errors were encountered: