• Kubernetes Submit Queue's avatar
    Merge pull request #43590 from dashpole/eviction_complete_deletion · 99a8f7c3
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 46022, 46055, 45308, 46209, 43590)
    
    Eviction does not evict unless the previous pod has been cleaned up
    
    Addresses #43166
    This PR makes two main changes:
    First, it makes the eviction loop re-trigger immediately if there may still be pressure.  This way, if we already waited 10 seconds to delete a pod, we dont need to wait another 10 seconds for the next synchronize call.
    Second, it waits for the pod to be cleaned up (including volumes, cgroups, etc), before moving on to the next synchronize call.  It has a timeout for this operation currently set to 30 seconds.
    99a8f7c3
kubelet_pods.go 60.4 KB