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




Activate garbage collector on pod termination, as appropriate.


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.


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


Policy Details

Rule Reference ID: AC_K8S_0044
Remediation Available: No
Resource: kubernetes_pod
Resource Category: Compute
Resource Type: Pod