k9s icon indicating copy to clipboard operation
k9s copied to clipboard

View node label under pod view

Open rshanor opened this issue 4 months ago • 1 comments

I am trying to figure out if there is a way to create a custom view so that I can see a node label under the pods view. Specifically, I would like to see the floor_name when looking at pods. Below is my views.yaml config for viewing the label under the nodes view. Any way to do this under pods view or is this a feature request?

views:
  v1/pods:
    columns:
      - NODE
  v1/nodes:
    sortColumn: MACHINE:asc
    columns:
      - MACHINE:.metadata.labels.floor_name

rshanor avatar Sep 05 '25 22:09 rshanor

@rshanor Right this is not currently possible as you are trying to join 2 separate resources aka pod and node. Pod resources only track node names at this juncture. You can use cmd o to jump to the associated node to see the labels.

derailed avatar Sep 18 '25 23:09 derailed