robscott / kube-capacity

A simple CLI that provides an overview of the resource requests, limits, and utilization in a Kubernetes cluster
Apache License 2.0
2.09k stars 114 forks source link

Is possible to use the tool without listing nodes? #68

Open jizusun opened 2 years ago

jizusun commented 2 years ago

Hi community,

With my limited permissions, I have this error

kubectl resource-capacity --sort cpu.limit --util --pods                     
Error listing Nodes: nodes is forbidden: User "320144150" cannot list resource "nodes" in API group "" at the cluster scope

Is possible to use the tool with my limited RBAC permission?

Best regards, Jizu

robscott commented 2 years ago

Hey @jizusun, I think we could potentially add that as an option. I think it would take some refactoring to make it work. Open to any PRs if anyone can make it work.