Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zerodayyy/kleaner
A Kubernetes operator that deletes evicted pods
https://github.com/zerodayyy/kleaner
Last synced: 8 days ago
JSON representation
A Kubernetes operator that deletes evicted pods
- Host: GitHub
- URL: https://github.com/zerodayyy/kleaner
- Owner: zerodayyy
- Created: 2020-07-10T21:57:00.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-07-14T11:39:49.000Z (over 4 years ago)
- Last Synced: 2024-06-21T07:43:29.360Z (7 months ago)
- Language: Go
- Homepage: https://hub.docker.com/repository/docker/zerodayyy/kleaner
- Size: 38.1 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Kleaner
![](https://img.shields.io/github/go-mod/go-version/zerodayyy/kleaner?style=flat-square)
![](https://img.shields.io/docker/cloud/build/zerodayyy/kleaner?style=flat-square)
![](https://img.shields.io/docker/v/zerodayyy/kleaner?style=flat-square)A Kubernetes operator that deletes evicted pods
##### Why?
Sometimes an application can have a severe memory leak, which will cause it to consume more and more RAM over time, and eventually get evicted. Evicted pods are not cleaned up automatically, which creates visual noise in CLI output and tools like ArgoCD. This tool is a quick fix for such problem.
##### How?
The heart of this tool is a small piece of Go code, which scans all namespaces for pods with `Evicted` in their status, and deletes them.
This code is run as a Kubernetes CronJob.### Installation
The recommended way of using Kleaner is installing it using Helm:
```
helm install kleaner helm/kleaner
```You can also use tools like ArgoCD or Flux.
### Configuration
There are a few variables exposed through `values.yaml` file:
- **`interval`** (*valid values: 1–59*) — how many minutes to wait between runs
- **`namespaces`** — list of namespaces to run in, defaults to all namespaces if not specified
- **`debug`** — if something works not as you expected, this can give you more insight (Go knowledge advised)### Changelog
##### **`v1.0.0`** — *July 14, 2020*
Initial release