Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change Kubernetes garbage collection threshold values

By default, image-gc-high-threshold and image-gc-low-threshold values are 90 and 80% respectively.

We want to change them to 80 and 70, How we can change the Kubernetes image garbage collection threshold values.

like image 999
Rahul Khengare Avatar asked Sep 14 '25 13:09

Rahul Khengare


1 Answers

Changing the garbage collection thresholds can be done using switches on the kubelet.

From 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)
like image 77
coreypobrien Avatar answered Sep 17 '25 12:09

coreypobrien