Open
Description
What happened?
In 1.27
k8s, container keeps restarting. Kubelet will generate so many file used for termination log in $ROOT_DIR/pods/podUID/containers/containerName
path. But files cannot be deleted when container is removed. So maybe we need to delete unused files after container removed.
What did you expect to happen?
termination log file will be deleted after container removed.
How can we reproduce it (as minimally and precisely as possible)?
- create pod
- kill container multiple times >= 1(default containersToKeep value is 1)
- many termination log files will be generated in
$ROOT_DIR/pods/podUID/containers/containerName
path
Anything else we need to know?
No response
Kubernetes version
all k8s version
Cloud provider
None
OS version
No response
Install tools
No response
Container runtime (CRI) and version (if applicable)
No response
Related plugins (CNI, CSI, ...) and versions (if applicable)
No response
Metadata
Metadata
Assignees
Labels
Categorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.Important over the long term, but may not be staffed and/or may need multiple releases to complete.Important over the long term, but may not be staffed and/or may need multiple releases to complete.Categorizes an issue or PR as relevant to SIG Node.Categorizes an issue or PR as relevant to SIG Node.Indicates an issue or PR is ready to be actively worked on.Indicates an issue or PR is ready to be actively worked on.
Type
Projects
Status
Triaged