Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 974 Bytes

README.md

File metadata and controls

24 lines (18 loc) · 974 Bytes

ansible离线快速部署k8s

单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