如何更改Kubernetes垃圾回收阈值的值

4

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

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

1个回答

4

可以使用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)

在k3s中,这些开关放置在/etc/rancher/k3s/config.yaml文件的kubelet-arg: - "image-gc-high-threshold=74"下面。 - Noumenon

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接