.status.capacity
Jump to navigation
Jump to search
kubectl get nodes -o json | jq ".items[] | {name:.metadata.name} + .status.capacity"
{ "name": "node1", "cpu": "8", "ephemeral-storage": "65504Mi", "hugepages-1Gi": "0", "hugepages-2Mi": "1364Mi", "memory": "32946972Ki", "pods": "110" } { "name": "node2", "cpu": "8", "ephemeral-storage": "65504Mi", "hugepages-1Gi": "0", "hugepages-2Mi": "1364Mi", "memory": "32946972Ki", "pods": "110" } { "name": "node3", "cpu": "8", "ephemeral-storage": "65504Mi", "hugepages-1Gi": "0", "hugepages-2Mi": "1364Mi", "memory": "32946972Ki", "pods": "110" }
Advertising: