derailed / k9s

🐶 Kubernetes CLI To Manage Your Clusters In Style!
https://k9scli.io
Apache License 2.0
27.33k stars 1.71k forks source link

Add %CPU/R %MEM/R to node view #2723

Open rmitchellscott opened 5 months ago

rmitchellscott commented 5 months ago




Is your feature request related to a problem? Please describe. No problem, other than it'd be nice to see at a glace if a node isn't scheduling pods due to request exhaustion.

Describe the solution you'd like A percentage or even just the count of total requested CPU and MEM requests for a node. A column for this, even in the wide view, would be great!

Describe alternatives you've considered I didn't see this column here: https://github.com/derailed/k9s/blob/9594065f41583766b4180151ba72788f4358721b/internal/render/node.go#L34 Even though this made me think it might have been added in 0.23.0. I also don't see the CPU/R:L and MEM/R:L fields mentioned in the release notes in the Node view.

nickwb commented 3 months ago

This would be very useful to me too. In short, I would be great to be able to see at a glance how much of the allocable CPU/RAM is already committed to existing pods on that node, by taking the sum of their requests (or limits).