Taints - Node :
kubectl taint nodes node-name key=value:taint-effect
taint-effect : NoSchedule | PreferNoSchedule | NoExecute
NoExecute : 新Pod不会部署,已存在的节点也会终止
Tolerations - Pods :
pod-definition.yml
spec:
tolerations:
- key: "app"
operator: "Equal"
value: "blue"
effect: "NoSchedule"
kubectl describe node kubemaster | grep Taint
: 查看master node的Taint