Kubernetes集群中节点调度,污点配置
默认配置下Kubernetes不会将Pod调度Master节点,策略设置为资源尽量不调度到污点节点中去
kubectl describe node master查看master节点Taints配置
[root@master modules]# kubectl describe node master|grep Taints
Taints: node-role.kubernetes.io/master:NoSchedule
将master运行pod调度,也作为工作节点使用
[root@master modules]# kubectl taint node master node-role.kubernetes.io/master-
[root@master modules]# kubectl describe node master|grep Taints
Taints: <none>