hjacobs/kube-janitor

Unused PVCs (e.g. EBS volumes): also check for Deployments

hjacobs opened this issue · 1 comments

Some people run Deployments with volumes. The PVC check should consider this. It's pretty trivial to add a check for Deployments here: https://github.com/hjacobs/kube-janitor/blob/master/kube_janitor/resource_context.py#L19

There is a valid use case for using a PVC with a Deployment: a PVC can be backed by a "write many" volume such as AWS EFS. The EFS volume can be mounted by multiple Pods, so a Deployment can be used.