Launched April 1, 2025
k8s-cleaner

k8s-cleaner

Cleaner is a Kubernetes controller that identifies unused or unhealthy resources, helping you maintain a streamlined and efficient Kubernetes cluster.

FreeDevOps3,115 impressions#11 of its week

Cleaner is a Kubernetes controller that identifies unused or unhealthy resources, helping you maintain a streamlined and efficient Kubernetes cluster. It provides flexible scheduling, label filtering, Lua-based selection criteria, resource removal or update and notifications via Slack, Webex and Discord. it can also automate clusters operations.

k8s-cleaner is a Kubernetes controller that finds and removes or updates unused or unhealthy resources.

for
Kubernetes administrators and DevOps engineers managing clusters
pricing
open source
license
Apache-2.0
gianlucam76/k8s-cleaner 828 51Goupdated 15 days ago
works withKubernetesLuaSlackWebexDiscordTelegramTeams

Key features

6 features of k8s-cleaner
  • Schedule — Define scan frequency with Cron syntax to run cleanup regularly.
  • DryRun — Test filtering logic without applying changes to resources.
  • Label Filtering — Select resources based on label keys, operators, and values.
  • Lua-based Selection — Write custom Lua scripts for complex resource selection criteria.
  • Notifications — Send detailed cleanup reports to Slack, Webex, Discord, Telegram or Teams.
  • Resource Removal & Updates — Automatically delete stale resources or patch them to current configurations.

Use cases

  • Remove orphaned pods and services to free cluster capacity
  • Update outdated ConfigMaps to match new standards
  • Run nightly scans to keep the cluster free of resource bloat
  • Notify team channels when resources are cleaned or patched
  • Validate cleanup rules safely using DryRun before production

k8s-cleaner FAQ

What types of resources can k8s-cleaner manage?+

It can handle any Kubernetes resource type, including custom resources.

How can I test my cleanup rules safely?+

Enable DryRun mode; the controller will identify matching resources without making changes.

Can I schedule scans at specific intervals?+

Yes, you can set a Cron expression to define how often k8s-cleaner runs.

How are notifications delivered?+

You can configure Slack, Webex, Discord, Telegram or Teams to receive cleanup reports.

Is k8s-cleaner free to use?+

Yes, it is an open-source project available on GitHub.

Summarized by DevHunt from gianlucam76.github.io · Oct 2, 2026. Details may change; check the official site.