DEV Community

Maksim Bober
Maksim Bober

Posted on • Edited on

1

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)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →