Skip to content

Auggie321/kubernetes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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  

About

collect k8s yaml configuration and solutions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published