I have a couple separate instance groups, and kubectl top nodes will display the CPU and Memory usage of all nodes. I'd like to be able to just ask for the information for a specific instance group if possible.

1 Answer 1


Do your instance groups have labels identifying the groups they belong to? If so, you can filter to them using the -l/--selector option, like so:

kubectl top nodes --selector instance-group=group-1

This assumes that the label name is instance-group and the label value for the group you want to query is group-1.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.