给节点打污点
给节点打污点
kubectl taint nodes node1 dedicated=gpu:NoSchedule
kubectl describe node node1 | grep -i taintsPod 容忍
Pod 容忍
spec:
tolerations:
- key: dedicated
operator: Equal
value: gpu
effect: NoSchedule容忍只表示「可以被调度上去」,不保证一定去;要定向使用再配合 nodeAffinity。