-
Notifications
You must be signed in to change notification settings - Fork 38.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The old pod log file is not deleted from the /var/log/pods/ directory #125079
Comments
This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
/sig node |
/sig storage |
/remove-sig node |
hi @Black-max12138 , thanks for reporting the issue, |
If these settings are not configured correctly then kubelet may not delete the old log files efficiently because these setting dictate the maximum size each log file can reach before being rotated and the max log files that can be retained ! |
you can also refer to this page for more details ! |
|
So what is the possibility of this happening if the parameters are set correctly? |
Generally once the POD is terminated & a new instance is started, the log files associated with the old pod get deleted. |
AFAIK container logs are managed by sig-node, not by sig-storage |
@jsafrane: Those labels are not set on the issue: In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
By default, Kubernetes truncates the pod’s container log if it reaches 10 MB. |
/assign @harche |
What happened?
In the /var/log/pods/ directory, many old log files are not deleted in a timely manner. As a result, the disk space is used up.
What did you expect to happen?
I think there should be only 1 old log file in this path.
How can we reproduce it (as minimally and precisely as possible)?
I don't know how this happened.
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: