Difference between revisions of "Nvidia.com/gpu"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
{{lc}} | {{lc}} | ||
− | [[kubectl get nodes -o json]] | jq -r '.items[] | select(.status.capacity."nvidia.com/gpu" != null) | {name: .metadata.name, capacity: .status.capacity}' | + | [[kubectl get nodes -o json]] | jq -r '.items[] | select([[.status.capacity]]."nvidia.com/gpu" != null) | {name: .metadata.name, capacity: .status.capacity}' |
Revision as of 08:53, 18 October 2024
kubectl get nodes -o json | jq -r '.items[] | select(.status.capacity."nvidia.com/gpu" != null) | {name: .metadata.name, capacity: .status.capacity}'
See also
Advertising: