Difference between revisions of "Nvidia.com/gpu"
Jump to navigation
Jump to search
(Created page with "{{lc}} kubectl get nodes -o json | jq -r '.items[] | select(.status.capacity."nvidia.com/gpu" != null) | {name: .metadata.name, capacity: .status.capacity}' * {{Nvid...") |
|||
(2 intermediate revisions 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 | ||
+ | |||
+ | == See also == | ||
* {{Nvidia tools}} | * {{Nvidia tools}} | ||
+ | |||
+ | [[Category:Nvidia]] |
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: