hjacobs/kube-janitor

Unused deployments

anilkumar000 opened this issue · 3 comments

Hi @hjacobs,
can we find out unused deployments/resources and delete them as Janitor Monkey! please comment

How would you define "unused"?

say if some pod has no traffic directed to it from n days, so we could consider it as unused, and delete with notification to clients.
please suggest @hjacobs

@anilkumar000 this would require some custom logic e.g. to integrate with some existing Ingress proxy (nginx, Skipper, ...) to get the number of requests. You can write some Python hook to achieve this: #64