Ensure that the --terminated-pod-gc-threshold argument is set as appropriate (Manual)
Scanned 9/3/2026
Install to Claude Code
npx -y skills add CyberStrikeus/CyberStrike --skill cis-k8s-v1110-1.3.1 --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Cis K8s V1110 1.3.1?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/cyberstrikeus-cis-k8s-v1110-1-3-1)More formats (shields.io, HTML) on the badges page.
---
name: cis-k8s-v1110-1.3.1
description: "Ensure that the --terminated-pod-gc-threshold argument is set as appropriate (Manual)"
category: cis-k8s
version: "1.11.0"
author: cyberstrike-official
tags: [cis, kubernetes, control-plane, controller-manager, garbage-collection]
cis_id: "1.3.1"
cis_benchmark: "CIS Kubernetes Benchmark v1.11.0"
tech_stack: [kubernetes]
cwe_ids: []
chains_with: []
prerequisites: []
severity_boost: {}
---
# 1.3.1 Ensure that the --terminated-pod-gc-threshold argument is set as appropriate (Manual)
## Profile Applicability
- Level 1 - Master Node
## Description
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
## Audit
Run the following command on the Control Plane node:
```bash
ps -ef | grep kube-controller-manager
```
Verify that the `--terminated-pod-gc-threshold` argument is set as appropriate.
## Remediation
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`.
## References
1. https://kubernetes.io/docs/admin/kube-controller-manager/
2. https://github.com/kubernetes/kubernetes/issues/28484
## CIS Controls
| Controls Version | Control | IG 1 | IG 2 | IG 3 |
| ---------------- | ------------------------------------------------------------------------------- | ---- | ---- | ---- |
| v8 | 4.8 Uninstall or Disable Unnecessary Services on Enterprise Assets and Software | | X | X |
| v7 | 9.2 Ensure Only Approved Ports, Protocols and Services Are Running | | X | X |
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!