码迷,mamicode.com
首页 > Web开发 > 详细

设置Kubernetes master可调度pod

时间:2020-01-08 00:52:44      阅读:757      评论:0      收藏:0      [点我收藏+]

标签:图片   sch   net   osc   节点   upd   div   name   code   

默认配置下Kubernetes不会将Pod调度到Master节点。如果希望将k8s-master也当作Node使用,可以执行如下命令:

taint命令说明:

  taint          Update the taints on one or more nodes

kubectl taint node node01 node-role.kubernetes.io/master-

技术图片

其中k8s-master是主机节点hostname如果要恢复Master Only状态,执行如下命令:

kubectl taint node node01 node-role.kubernetes.io/master="":NoSchedule

技术图片

设置Kubernetes master可调度pod

标签:图片   sch   net   osc   节点   upd   div   name   code   

原文地址:https://www.cnblogs.com/Dev0ps/p/12164272.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!