Difference between revisions of "Nvidia.com/gpu"
Jump to navigation
Jump to search
(One intermediate revision by the same user not shown) | |||
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}' |
+ | |||
+ | |||
+ | [[tolerations:]] | ||
+ | - key: [[nvidia.com/gpu]] | ||
+ | operator: Exists | ||
+ | effect: NoSchedule | ||
Latest revision as of 08:55, 18 October 2024
kubectl get nodes -o json | jq -r '.items[] | select(.status.capacity."nvidia.com/gpu" != null) | {name: .metadata.name, capacity: .status.capacity}'
tolerations: - key: nvidia.com/gpu operator: Exists effect: NoSchedule
See also[edit]
Advertising: