Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to filter pods based on status in k9s

Tags:

kubernetes

Often there is more than one search result returned from / filter command which is confirm by pressing Enter. Then I can navigate the results, but have no way to filter based on data displayed e.g. Status or CPU.

QUESTION: Is this possible? If so, what I need to do to achieve it?

enter image description here

like image 541
kalitsov Avatar asked Sep 15 '25 20:09

kalitsov


2 Answers

I don't think it's possible to filter search result, but you can sort them, which can be helpful in most cases. For example:

  • SHIFT+C sorts by CPU
  • SHIFT+M sorts by MEMORY
  • SHIFT+S sorts by STATUS
  • ...
like image 120
dgebert Avatar answered Sep 17 '25 10:09

dgebert


You can filter results using / just like with :

As @dgebert said for sorting use SHIFT + first letter of keyword to sort by

like image 38
krzystooof Avatar answered Sep 17 '25 09:09

krzystooof