From 7e976010238fe63fc82409c5e5ff9446ee005c9c Mon Sep 17 00:00:00 2001 From: Maxime Lagresle Date: Mon, 15 Feb 2021 14:29:29 +0100 Subject: [PATCH] Prevent Kubelet stuck in DiskPressure when imagefs minReclaim is set Fixes https://github.com/kubernetes/kubernetes/issues/99094 --- pkg/kubelet/eviction/eviction_manager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/kubelet/eviction/eviction_manager.go b/pkg/kubelet/eviction/eviction_manager.go index 10d4a2c852a..a99e7d35615 100644 --- a/pkg/kubelet/eviction/eviction_manager.go +++ b/pkg/kubelet/eviction/eviction_manager.go @@ -430,7 +430,7 @@ func (m *managerImpl) reclaimNodeLevelResources(signalToReclaim evictionapi.Sign debugLogObservations("observations after resource reclaim", observations) // determine the set of thresholds met independent of grace period - thresholds := thresholdsMet(m.config.Thresholds, observations, false) + thresholds := thresholdsMet(m.config.Thresholds, observations, true) debugLogThresholdsWithObservation("thresholds after resource reclaim - ignoring grace period", thresholds, observations) if len(thresholds) == 0 {