1.3.1 Ensure that the --terminated-pod-gc-threshold argument is set as appropriate

Information

Activate garbage collector on pod termination, 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. The current setting for garbage collection is 12,500 terminated pods which might be too high for your system to sustain. Based on your system resources and tests, choose an appropriate threshold value to activate garbage collection.

Impact:

None

Solution

Edit the Controller Manager pod specification file /etc/kubernetes/manifests/kube-controller-manager.yaml on the Control Plane node and set the --terminated-pod-gc-threshold to an appropriate threshold, for example:

--terminated-pod-gc-threshold=10

Default Value:

By default, --terminated-pod-gc-threshold is set to 12500.

See Also

https://workbench.cisecurity.org/files/3892

Item Details

Category: SYSTEM AND INFORMATION INTEGRITY

References: 800-53|SI-16, CSCv7|5.1

Plugin: Unix

Control ID: 288c67a090dd54907fb5d8bec47eae7681b498430c3ad1a48694735e4406fbd9