单master多node,生产默认不将master作为资源分配节点
kubectl get nodes
NAME STATUS ROLES AGE VERSION
192.168.2.133 Ready,SchedulingDisabled master 38m v1.13.5
192.168.2.134 Ready node 38m v1.13.5
192.168.2.135 Ready node 38m v1.13.5
#https://github.com/kubernetes/kops/issues/639
#kubectl patch node MASTER_NAME -p '{"spec":{"unschedulable":true}}' master不作为资源节点分配
[root~] $kubectl patch node 192.168.2.133 -p '{"spec":{"unschedulable":false}}' #将master作为资源节点分配
node/192.168.2.133 patched
[root~] $kubectl get nodes
NAME STATUS ROLES AGE VERSION
192.168.2.133 Ready master 39m v1.13.5
192.168.2.134 Ready node 39m v1.13.5
192.168.2.135 Ready node 39m v1.13.5