Difference between revisions of "Nvidia.com/gpu"

From wikieduonline
Jump to navigation Jump to search
 
Line 3: Line 3:
 
  [[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: