kubernetes: Downward API does not support gpu resource
I can not fetch the GPU limit resource by downward API using YAML like :
valueFrom:
resourceFieldRef:
resource: limits.alpha.kubernetes.io/nvidia-gpu
The errror message:
The Job "gpu-job" is invalid: spec.template.spec.containers[0].env[4].valueFrom.resourceFieldRef.resource: Unsupported value: "limits.alpha.kubernetes.io/nvidia-gpu": supported values: limits.cpu, limits.memory, requests.cpu, requests.memory
About this issue
- Original URL
- State: open
- Created 10 years ago
- Reactions: 1
- Comments: 25 (16 by maintainers)
@pohly @klueska maybe this will be something interesting to discussed on the WG Device management and DRA