• k8s-merge-robot's avatar
    Merge pull request #27199 from derekwaynecarr/disk_eviction · 821ff657
    k8s-merge-robot authored
    Automatic merge from submit-queue
    
    Initial support for pod eviction based on disk
    
    This PR adds the following:
    
    1. node reports disk pressure condition based on configured thresholds
    1. scheduler does not place pods on nodes reporting disk pressure
    1. kubelet will not admit any pod when it reports disk pressure
    1. kubelet ranks pods for eviction when low on disk
    1. kubelet evicts greediest pod
    
    Follow-on PRs will need to handle:
    
    1. integrate with new image gc PR (https://github.com/kubernetes/kubernetes/pull/27199)
    1. container gc policy should always run (will not be launched from eviction, tbd who does that)
      1. this means kill pod is fine for all eviction code paths since container gc will remove dead container
    1. min reclaim support will just poll summary provider (derek will do follow-on)
    1. need to know if imagefs is same device as rootfs from summary (derek follow-on)
    
    /cc @vishh @kubernetes/sig-node 
    821ff657
Name
Last commit
Last update
..
api/v1alpha1 Loading commit data...
cadvisor Loading commit data...
client Loading commit data...
cm Loading commit data...
config Loading commit data...
container Loading commit data...
custommetrics Loading commit data...
dockershim Loading commit data...
dockertools Loading commit data...
envvars Loading commit data...
events Loading commit data...
eviction Loading commit data...
images Loading commit data...
leaky Loading commit data...
lifecycle Loading commit data...
metrics Loading commit data...
network Loading commit data...
pleg Loading commit data...
pod Loading commit data...
prober Loading commit data...
qos Loading commit data...
rkt Loading commit data...
server Loading commit data...
status Loading commit data...
types Loading commit data...
util Loading commit data...
volumemanager Loading commit data...
OWNERS Loading commit data...
active_deadline.go Loading commit data...
active_deadline_test.go Loading commit data...
container_bridge.go Loading commit data...
disk_manager.go Loading commit data...
disk_manager_test.go Loading commit data...
doc.go Loading commit data...
flannel_helper.go Loading commit data...
image_manager.go Loading commit data...
image_manager_test.go Loading commit data...
kubelet.go Loading commit data...
kubelet_cadvisor.go Loading commit data...
kubelet_cadvisor_test.go Loading commit data...
kubelet_getters.go Loading commit data...
kubelet_getters_test.go Loading commit data...
kubelet_network.go Loading commit data...
kubelet_network_test.go Loading commit data...
kubelet_node_status.go Loading commit data...
kubelet_node_status_test.go Loading commit data...
kubelet_resources.go Loading commit data...
kubelet_resources_test.go Loading commit data...
kubelet_test.go Loading commit data...
kubelet_volumes.go Loading commit data...
networks.go Loading commit data...
oom_watcher.go Loading commit data...
oom_watcher_test.go Loading commit data...
pod_workers.go Loading commit data...
pod_workers_test.go Loading commit data...
reason_cache.go Loading commit data...
reason_cache_test.go Loading commit data...
root_context_linux.go Loading commit data...
root_context_unsupported.go Loading commit data...
runonce.go Loading commit data...
runonce_test.go Loading commit data...
runtime.go Loading commit data...
util.go Loading commit data...
volume_host.go Loading commit data...