• k8s-merge-robot's avatar
    Merge pull request #24647 from yifan-gu/rkt_gc · 5df28fa1
    k8s-merge-robot authored
    Automatic merge from submit-queue
    
    rkt: Refactor GarbageCollect to enforce GCPolicy.
    
    Previously, we uses `rkt gc` to garbage collect dead pods, which is very coarse, and can cause the dead pods to be removed too aggressively. 
    
    This PR improves the garbage collection, now after one GC iteration:
    - The deleted pods will be removed.
    - If the number of containers exceeds gcPolicy.MaxContainers,
      then containers whose ages are older than gcPolicy.minAge will be removed.
    
    cc @kubernetes/sig-node @euank @sjpotter 
    
    Pending on #23887 for the Godep updates.
    
    <!-- Reviewable:start -->
    ---
    This change is [<img src="http://reviewable.k8s.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](http://reviewable.k8s.io/reviews/kubernetes/kubernetes/24647)
    <!-- Reviewable:end -->
    5df28fa1
Name
Last commit
Last update
..
genbashcomp Loading commit data...
gendocs Loading commit data...
genkubedocs Loading commit data...
genman Loading commit data...
genswaggertypedocs Loading commit data...
genutils Loading commit data...
genyaml Loading commit data...
hyperkube Loading commit data...
integration Loading commit data...
kube-apiserver Loading commit data...
kube-controller-manager Loading commit data...
kube-proxy Loading commit data...
kubectl Loading commit data...
kubelet Loading commit data...
kubemark Loading commit data...
kubernetes-discovery Loading commit data...
libs/go2idl Loading commit data...
linkcheck Loading commit data...
mungedocs Loading commit data...
OWNERS Loading commit data...