davidB / kubectl-view-allocations

kubectl plugin to list allocations (cpu, memory, gpu,... X utilization, requested, limit, allocatable,...)

Home Page:https://crates.io/crates/kubectl-view-allocations

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Show Allocatable/Free CPU as millicpu

ndrpnt opened this issue · comments

EDIT: nvm, this is fixed with v0.7.2. The krew plugin version is not up to date.

Hi there,

The Allocatable column seems off because 1900m CPU is shown as 1 CPU. This has some weird consequences:

  • Allocatable total different from the sum of Allocatable CPUs on each node
  • Requested > Allocatable
  • Allocatable - Requested != Free
$ kubectl view-allocations -g node -r cpu
 Resource                               Requested  %Requested   Limit  %Limit  Allocatable  Free
  cpu                                       8009m         84%  15775m    165%            9     0
  ├─ aks-nodepool1-21041908-vmss000000      1730m         91%   2500m    132%            1     0
  ├─ aks-nodepool1-21041908-vmss000001      1240m         65%   3800m    200%            1     0
  ├─ aks-nodepool1-21041908-vmss000004      1555m         82%   3075m    162%            1     0
  └─ aks-nodepool2-21041908-vmss000004      3484m         90%   6400m    166%            3     0

Running v0.7.0

Sorry, I'm updating krew-index

No worries, thanks for the awesome plugin!