k8s master 调度污点
- NoSchedule:K8Snode添加这个effecf类型污点,新的不能容忍的pod不能再调度过来,但是老的运行在node上不受影响
- NoExecute:K8Snode添加这个effecf类型污点,新的不能容忍的pod不能调度过来,老的pod也会被驱逐
- PreferNoSchedule:pod会尝试将pod分配到该节点
#设置master-1污点 kubectl taint nodes master-1 node-role.kubernetes.io/master:NoSchedule #不允许master-1参与调度
#去除污点
kubectl taint nodes master-1 node-role.kubernetes.io/master:NoSchedule- #允许master-1参与调度
标签:node,调度,master,污点,pod,k8s From: https://www.cnblogs.com/Dfengshuo/p/15563509.html