all repos — janny @ 1b2b5aa905932d2e7a415a07b3234350e33abfff

clean up Kubernetes resources after a set TTL

readme (view raw)

 1JANNY
 2
 3A work-in-progress Kubernetes application to clean up Kubernetes
 4resources after a set TTL.
 5
 6
 7ROADMAP
 8
 9[ ] Implement basic resource cleaning
10[ ] Black/whitelist resources
11[ ] Expiry timestamp
12[ ] Helm chart
13
14
15DEVELOPING
16
17Setup a local minikube cluster[1]. Then, clone this repo and install
18dependencies:
19
20    $ poetry shell
21    $ poetry install
22
23Build a docker image (gets stored in minikube's registry):
24
25    $ eval $(minikube env-docker)
26    $ docker build -t janny:latest .
27
28Finally, deploy to your cluster:
29
30    $ kubectl apply -f deploy/deployment.yaml
31
32Note: Absolutely nothing works at the moment, so don't even bother.
33
34
35PRIOR ART
36
37https://codeberg.org/hjacobs/kube-janitor: While kube-janitor already
38does the same thing, it's written using pykube, which has been
39undeveloped since 2017.
40
41
42[1]: https://minikube.sigs.k8s.io/docs/