【发布时间】: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
默认情况下,image-gc-high-threshold 和 image-gc-low-threshold 的值分别为 90% 和 80%。
我们想将它们改为 80 和 70,我们如何更改 Kubernetes 镜像垃圾回收阈值。
提前致谢。
【问题讨论】:
标签: garbage-collection kubernetes azure-container-service
可以使用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)
【讨论】: