k8s 去除master节点污点NoSchedule,添加master节点 尽量不调度

k8s 去除master节点(k8s-master02)污点NoSchedule,添加master节点 尽量不调度 PreferNoSchedule标签

#添加 尽量不调度 PreferNoSchedule 
kubectl taint nodes k8s-master02 node-role.kubernetes.io/master:PreferNoSchedule
#去除污点NoSchedule,最后一个"-"代表删除
kubectl taint nodes k8s-master02 node-role.kubernetes.io/master:NoSchedule-

 

Share