kubectl taint node [node] key=value[effect]
[effect] 可取值: [ NoSchedule | PreferNoSchedule | NoExecute ]
NoSchedule: 一定不能被调度
PreferNoSchedule: 尽量不要调度
NoExecute: 不仅不会调度, 还会驱逐Node上已有的Pod
# 设置污点
kubectl taint node k8s-master01 node-role.kubernetes.io/master="":NoSchedule
# 取消污点
kubectl taint node k8s-master01 node-role.kubernetes.io/master-
# 查看污点
kubectl describe node | grep Taint