I looking for the way to tail log with kubernetes
Why the test
kubectl log --tail=-30 mypod mycontainer | wc -l
190547
Not giving 30 ?
You're passing it -30
, which isn't a valid number of log lines, so it's returning all the lines. Pass it a positive number, i.e. 30
, and it should do what you want.