How do you force a pod onto GPU nodes only?
BeginnerScenarioResources, autoscaling and scheduling
Answer
Situation read → ML pods keep landing on regular nodes.
What I'd do →
- Label and taint GPU nodes, for example
kubectl taint nodes gpu-1 nvidia.com/gpu=present:NoSchedule - Request
resources.limits.nvidia.com/gpu: 1 - Add a toleration and a nodeSelector or affinity
- Install the NVIDIA device plugin
- Check with
kubectl describe node | grep nvidia
Why → Taints repel normal pods, tolerations plus selectors attract the intended ones.
Interview tip → Remember a toleration alone does not attract pods.
More on Resources, autoscaling and scheduling
How do you choose requests and limits for a new service?BeginnerPods are Pending with `0/6 nodes are available: 6 Insufficient cpu`. What do you do?IntermediateExplain QoS classes and which pods get evicted first.IntermediateCPU limits cause latency spikes though average usage is low. Why and what is the fix?IntermediateHow do you configure an HPA on CPU?BeginnerHPA shows `<unknown>/70%` for CPU. What do you do?Intermediate