Show capacity data in a concise table.

Section: Go Templates, Custom Columns, and jq-Friendly Patterns

Node capacity custom columns

bash
bash
kubectl get nodes -o custom-columns=NAME:.metadata.name,CPU:.status.capacity.cpu,MEM:.status.capacity.memory,EPHEMERAL:.status.capacity.ephemeral-storage
Explanation

Show capacity data in a concise table.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Go Templates, Custom Columns, and jq-Friendly Patterns
Go template pod phase
Render output using Go templates.
OpenIn sheetbashsame section
Pretty JSON with jq
Pipe kubectl JSON into jq for flexible filtering.
OpenIn sheetbashsame section
Search YAML output
Extract YAML fields with yq.
OpenIn sheetbashsame section
List node internal IPs
Print node names with internal IPs.
OpenIn sheetbash1 tag match
List pod names
Print all pod names in a namespace.
Render kustomization
Build a kustomization without applying it.