kube-capacity icon indicating copy to clipboard operation
kube-capacity copied to clipboard

Is possible to use the tool without listing nodes?

Open jizusun opened this issue 3 years ago • 1 comments
trafficstars

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

jizusun avatar Apr 07 '22 09:04 jizusun

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.

robscott avatar May 13 '22 18:05 robscott