Show extra labels on the pod list from the pod's node?
Is your feature request related to a problem? Please describe.
On the list of pods we can see the node name, but it would be super useful to be able to show some of the labels from the node as well. For example when working with Karpenter it's handy to be able to see at a glance which node pool the pod is in, which can be found in the karpenter.sh/nodepool label on the node. Because this label is not on the pod, I'm unsure how to reference it from the context of the pod.
Describe the solution you'd like
Ideally this would work with the existing custom views template, but I'm unsure how the syntax should look, but as we have the nodename on the pod, we'd need a way to specify that as the lookup key, allowing us to fetch labels from the node itself, and lookup the value we need from there. Something like nodes[.spec.nodeName].labels.karpenter.sh/nodepool?
Describe alternatives you've considered
At the moment we can do this using the eks-node-viewer and running it with an extra param, for example --extra-labels=topology.kubernetes.io/zone,karpenter.sh/nodepool to add the AWS region, and the Karpenter nodepool labels to the display, but it would be better if we could have this all in a single tool.
Additional context Is it even possible to lookup and combine data from across multiple resources, in this case pods and their nodes?
Thanks for such a brilliantly useful application! 🙏
One workaround is to add the karpenter.sh/nodepool label to the custom view for nodes. Then, when you're in the pods view, you can press o to open the node associated with the selected pod. After checking the node details, press ESC or - to return to the pod list.
Ah yeah that's a good tip too, thanks.
This issue is stale because it has been open for 30 days with no activity.