Stern for kubernetes pod logs not working

4/13/2021

I installed stern on mac with brew. https://github.com/wercker/stern

When I run stern pod-query there is no output. the cursor keeps on blinking in the terminal. What's wrong here?

I tried stern pod-query -n <namespace>, stern service -> all with same result.

-- sachin
kubernetes
logging

1 Answer

4/13/2021

it worked. i used :

stern ".*" --tail -1 -n <namespace>

thanks to : https://stackoverflow.com/a/58935566/6492560

-- sachin
Source: StackOverflow