Kubernetes dashboard is able to show "current running pods / pods capacity" per node. But when I try to get the same info with kubectl
I have to run two commands:
kubectl describe node | grep -E (^Name:|^Non-terminated)
which lists "current running pod on node", and
kubectl get nodes -o=custom-columns=NAME:.metadata.name,CAPACITY:.status.capacity.pods
which shows the node's capacity
Does anyone know how I can get the output similar to below using one command only?
NAME CURRENT CAPACITY
node_1 7 15
node_2 8 15
node_3 15 15
Thanks in advance!