【问题标题】:How to change Kubernetes garbage collection threshold values如何更改 Kubernetes 垃圾收集阈值
【发布时间】:2017-08-09 13:55:29
【问题描述】:

默认情况下,image-gc-high-threshold 和 image-gc-low-threshold 的值分别为 90% 和 80%。

我们想将它们改为 80 和 70,我们如何更改 Kubernetes 镜像垃圾回收阈值。

提前致谢。

【问题讨论】:

    标签: garbage-collection kubernetes azure-container-service


    【解决方案1】:

    可以使用kubelet 上的开关来更改垃圾回收阈值。

    来自the docs

    --image-gc-high-threshold int32    The percent of disk usage after which image garbage collection is always run. (default 85)
    --image-gc-low-threshold int32     The percent of disk usage before which image garbage collection is never run. Lowest disk usage to garbage collect to. (default 80)
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-01-08
      • 2020-07-21
      • 1970-01-01
      • 2011-01-21
      • 1970-01-01
      • 2014-10-17
      相关资源
      最近更新 更多