correct the usage of ephemeral storage volumes in the eviction message #130439
Labels
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.
What happened?
In k8s 1.32 cluster, I created a pod with
emptydir
volume and continuously wrote data into theemptydir
volume to trigger node eviction. However, the event generated during the eviction is as follows:The reported
122Ki
value only includes the usage ofrootfs
andlogs
, without accounting for the usage of volumes such asemptydir
.kubernetes/pkg/kubelet/eviction/helpers.go
Line 1262 in 39c640f
This may lead to user confusion: why is the pod being evicted when it appears to be using so little ephemeral storage?
Therefore, it is necessary to include the consideration of
emptydir
in the eviction message./sig node
friendly ping @pacoxu @kannon92
What did you expect to happen?
the eviction message contains the correct usage of ephemeral storage volumes
How can we reproduce it (as minimally and precisely as possible)?
emptydir
volumeAnything 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: