How do pods use GPUs on Kubernetes?
BeginnerConceptGPU infrastructure & cost
Answer
Install the NVIDIA device plugin (usually via the NVIDIA GPU Operator, which also manages drivers), then request GPUs in the pod spec with resources.limits: nvidia.com/gpu: 1. The scheduler places the pod on a node with a free GPU. GPUs are not shared between containers by default.
More on GPU infrastructure & cost
What is the NVIDIA GPU Operator?BeginnerWhat are GPU time-slicing and MIG?IntermediateHow do you keep GPU nodes for GPU workloads only?IntermediateHow do you monitor GPU usage?IntermediateGPU nodes are expensive but utilisation is only 15%. What do you do?IntermediateHow do you autoscale GPU nodes on EKS or AKS?Advanced