Information
Configure garbage collection for containers and images as appropriate
Rationale:
Garbage collection is important to ensure sufficient resource availability and avoiding degraded performance and availability. In the worst case, the system might crash or just be unusable for a long period of time. Based on your system resources and tests, choose an appropriate threshold value to activate garbage collection.
Impact:
Incorrect configuration of garbage collection parameters can lead to system instability, degraded performance, and in worst cases, system crashes. Properly set parameters ensure efficient utilization of system resources.'
NOTE: Nessus has not performed this check. Please review the benchmark to ensure target compliance.
Solution
To configure, follow the directions in Garbage Collection Remediation
Default Value:
The kubelet has the following default hard eviction thresholds:
{
'imagefs.available': '15%',
'memory.available': '100Mi',
'nodefs.available': '10%',
'nodefs.inodesFree': '5%'
}
Noted: These default values of hard eviction thresholds will only be set if none of the parameters is changed. If you changed the value of any parameter, then the values of other parameters will not be inherited as the default values and will be set to zero. In order to provide custom values, you should provide all the thresholds respectively.