允许/禁止master节点部署pod
# 允许master节点部署pod
kubectl taint nodes --all node-role.kubernetes.io/master-
# 禁止master部署pod
kubectl taint nodes master node-role.kubernetes.io/master=true:NoSchedule
允许/禁止master节点部署pod
# 允许master节点部署pod
kubectl taint nodes --all node-role.kubernetes.io/master-
# 禁止master部署pod
kubectl taint nodes master node-role.kubernetes.io/master=true:NoSchedule