etopeter/kubectl-view-utilization

Utilization % doesn't change when nodes are drained

2rs2ts opened this issue · 3 comments

Steps to reproduce:

  1. watch kubectl-view-utilization
  2. kubectl drain some nodes
  3. you will see that %s don't change, neither does schedulable

I think this might be a flaw in kubernetes itself but maybe there is a workaround?

Thank you for reporting this issue. Seems like we could use better filtering when it comes to gathering information about available nodes with READY state. In your case you're draining nodes which also cordons them and make them unschedulable. I will add test cases for that and proper patch.

Proposed fix for this issue:
#35

This is now in Releasev0.2.2. Closing issue.