单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
-
Notifications
You must be signed in to change notification settings - Fork 0
Auggie321/kubernetes
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
collect k8s yaml configuration and solutions
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published