Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
"kubectl logs --selector" ignores "--tail=-1" #74900
When attempting to get all log lines using
What you expected to happen:
All log lines should be returned
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
This was introduced in ea7065d in an attempt to fix another issue where selectors would ignore tail values !=-1. I think the problem here is the logic cannot tell if the
referenced this issue
Mar 5, 2019
Thanks for you reply.
There are some background in below tickets, --tail=-1 is one of the option. Please check.
Encountering similar behaviour to this myself. Is there any chance whatever fixes get applied can also be applied to the
This ticket has two issues:
kubectl logs -l app=test --tail=-1
Second, --tail=-1 is the legacy usage which show all lines, here just return 10 lines.
The behavior after fix:
Interesting. I think this also causes
^-- expected record
^-- some later record (there are only 2 pods running, so
A bit strange that it finds records a few seconds older as well.. but that's not a big concern, and not relevant for this issue.
Although that only happens when the