DEV Community

Maksim Bober
Maksim Bober

Posted on • Edited on

One line CLI tool to fuzzy search pods?

fzf is a nice tool that allows you to fuzzy search line separated input. So what if we want to fuzzy search our active pods?

asciicast

 kubectl get po --no-headers --field-selector=status.phase=Running -o custom-columns=":metadata.name" | fzf | head | xargs kubectl logs -f
Enter fullscreen mode Exit fullscreen mode

Top comments (0)