Skip to main content
Account

Eraser

Eraser is a Kubernetes component that deletes vulnerable and unused container images from nodes. Learn how ImageList, ImageJob and Trivy scanning work.

Status
Stable
Category
Orchestration & Management
Subcategory
Scheduling & Orchestration
License
Apache-2.0
Technology matrix Skip Just not for me See the matrix

Eraser is a Kubernetes component that removes vulnerable and unused container images from worker nodes. On a typical cluster, kubelet’s garbage collection only evicts images under disk pressure, so known-CVE images can linger on nodes long after no pod uses them — Eraser’s job is to actively go find and delete them.

It runs as a controller plus a per-node DaemonSet-spawned job pattern. An ImageList or ImageJob CR tells Eraser which images to remove; the controller schedules short-lived pods on each node that talk directly to the container runtime (containerd, CRI-O) via CRI and delete the specified images. It can also run in a scanning mode where it uses Trivy to find vulnerable images on each node and then remove them automatically on a schedule.

Eraser is maintained primarily by Microsoft and lives in the CNCF Sandbox (accepted 2023). It’s narrow in scope — it doesn’t scan running containers, patch images, or manage admission — but it fills a real gap that Kyverno, Gatekeeper, and image-scanning tools don’t: actually deleting the bad bits off the nodes once you know they’re there.

Scheduling & Orchestration

Email signup loads here. You can also manage email preferences in account settings.

Build Eraser? I'll show you where engineers get stuck with it → Back free content for the community →