• Kubernetes Submit Queue's avatar
    Merge pull request #40432 from sjenning/imagegc-default · 6f3e5bad
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue
    
    kubelet: change image-gc-high-threshold below docker dm.min_free_space
    
    docker dm.min_free_space defaults to 10%, which "specifies the min free space percent in a thin pool require for new device creation to succeed....Whenever a new a thin pool device is created (during docker pull or during container creation), the Engine checks if the minimum free space is available. If sufficient space is unavailable, then device creation fails and any relevant docker operation fails." [1]
    
    This setting is preventing the storage usage to cross the 90% limit. However, image GC is expected to kick in only beyond image-gc-high-threshold. The image-gc-high-threshold has a default value of 90%, and hence GC never triggers. If image-gc-high-threshold is set to a value lower than (100 - dm.min_free_space)%, GC triggers.
    
    xref https://bugzilla.redhat.com/show_bug.cgi?id=1408309
    
    ```release-note
    changed kubelet default image-gc-high-threshold to 85% to resolve a conflict with default settings in docker that prevented image garbage collection from resolving low disk space situations when using devicemapper storage.
    ```
    
    @derekwaynecarr @sdodson @rhvgoyal
    6f3e5bad
Name
Last commit
Last update
..
abac Loading commit data...
apps Loading commit data...
authentication Loading commit data...
authorization Loading commit data...
autoscaling Loading commit data...
batch Loading commit data...
certificates Loading commit data...
componentconfig Loading commit data...
extensions Loading commit data...
imagepolicy Loading commit data...
meta/v1 Loading commit data...
policy Loading commit data...
rbac Loading commit data...
settings Loading commit data...
storage Loading commit data...
OWNERS Loading commit data...