Red Hat OpenShift
TMA-OPENSHIFT-4.2.1
Activate Garbage collection in OpenShift Container Platform 4, as appropriate
LowLevel 1Manual reviewopenshift
Description
Configure garbage collection for containers and images as appropriate The benchmark marks this recommendation Manual.
How it is checked
Audit method: Manual review
This recommendation cannot be checked automatically. A scan lists it with these instructions when you pass --include-manual.
Two types of garbage collection are performed on an OpenShift Container Platform node: • Container garbage collection: Removes terminated containers. • Image garbage collection: Removes images not referenced by any running pods. Container garbage collection can be performed using eviction thresholds. Image garbage collection relies on disk usage as reported by cAdvisor on the node to decide which images to remove from the node.
How it is fixed
Fix method: Guidance or infrastructure patch
To configure, follow the directions in Garbage Collection Remediation
Properties
- Operating systems
- Any
- Tags
- openshiftworker-node
- Reference
- CIS Red Hat OpenShift Container Platform Benchmark v2.0.0 - 4.2.1 Activate Garbage collection in OpenShift Container Platform 4, as appropriate