默認情況下,image-gc-high-threshold和image-gc-low-threshold值分別爲90%和80%。如何更改Kubernetes垃圾回收閾值
我們希望將它們更改爲80和70,我們如何更改Kubernetes圖像垃圾收集閾值。
在此先感謝。
默認情況下,image-gc-high-threshold和image-gc-low-threshold值分別爲90%和80%。如何更改Kubernetes垃圾回收閾值
我們希望將它們更改爲80和70,我們如何更改Kubernetes圖像垃圾收集閾值。
在此先感謝。
更改垃圾回收閾值可以使用kubelet
上的開關完成。
--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)
基本上如下的文檔中描述您可以覆蓋缺省的用戶值。
https://kubernetes.io/docs/concepts/cluster-administration/kubelet-garbage-collection/