kubectl logs will not output logs after the log file is rotated. #115701
Labels
area/kubelet
kind/bug
Categorizes issue or PR as related to a bug.
priority/important-longterm
Important over the long term, but may not be staffed and/or may need multiple releases to complete.
sig/node
Categorizes an issue or PR as relevant to SIG Node.
triage/accepted
Indicates an issue or PR is ready to be actively worked on.
Projects
What happened?
kubectl logs POD_NAME -f
won't output logs after kubelet rotate log filer of the container.What did you expect to happen?
kubectl output logs correctly after the log file is rotated.
How can we reproduce it (as minimally and precisely as possible)?
containerLogMaxSize: 5Mi
tokubelet.yaml
. So kubelet will rotate the log soon.kubectl logs POD_NAME -f
Anything else we need to know?
No response
Kubernetes version
Cloud provider
OS version
Install tools
Container runtime (CRI) and version (if applicable)
Related plugins (CNI, CSI, ...) and versions (if applicable)
The text was updated successfully, but these errors were encountered: