Which command shows a node's GPU capacity in Kubernetes?
Why B is the answer
kubectl describe node
Capacity lists nvidia.com/gpu.
In detail
- Capacity lists nvidia.com/gpu.
- Check allocatable as well.
Use case
An illustrative scenario, not a real incident.
An admin runs kubectl describe node, and capacity lists nvidia.com/gpu.
See it in different ways
flowchart TD
A["Pod Pending"] --> B["kubectl describe pod"]
B --> C{"Does the node report GPUs?"}
C -->|No| D["Check operator and device plugin"]
C -->|Yes| E["Check quotas, taints and selectors"]stateDiagram-v2 [*] --> Pending Pending --> NoGpuReported: node shows no GPUs Pending --> Taint: no matching toleration Pending --> WrongRequest: no nvidia.com/gpu limit NoGpuReported --> CheckOperator Taint --> AddToleration WrongRequest --> FixPodSpec
flowchart LR S0["kubectl describe node"] --> S1["Read capacity"] --> S2["Find nvidia.com/gpu"]
Key point: describe node shows capacity.
Why the other options are wrong
- A. kubectl version
- That shows versions.
- C. kubectl get namespaces
- That lists namespaces.
- D. kubectl config view
- That shows client settings.

