all repos — janny @ 1b2b5aa905932d2e7a415a07b3234350e33abfff

clean up Kubernetes resources after a set TTL

Add readme
Anirudh Oppiliappan x@icyphox.sh
Sun, 07 Mar 2021 21:46:50 +0530
commit

1b2b5aa905932d2e7a415a07b3234350e33abfff

parent

037e9700cfe4f2c8f310ed9652a241d3c7c9d5cf

1 files changed, 42 insertions(+), 0 deletions(-)

jump to
A readme

@@ -0,0 +1,42 @@

+JANNY + +A work-in-progress Kubernetes application to clean up Kubernetes +resources after a set TTL. + + +ROADMAP + +[ ] Implement basic resource cleaning +[ ] Black/whitelist resources +[ ] Expiry timestamp +[ ] Helm chart + + +DEVELOPING + +Setup a local minikube cluster[1]. Then, clone this repo and install +dependencies: + + $ poetry shell + $ poetry install + +Build a docker image (gets stored in minikube's registry): + + $ eval $(minikube env-docker) + $ docker build -t janny:latest . + +Finally, deploy to your cluster: + + $ kubectl apply -f deploy/deployment.yaml + +Note: Absolutely nothing works at the moment, so don't even bother. + + +PRIOR ART + +https://codeberg.org/hjacobs/kube-janitor: While kube-janitor already +does the same thing, it's written using pykube, which has been +undeveloped since 2017. + + +[1]: https://minikube.sigs.k8s.io/docs/