时间: 2020-09-3|50次围观|0 条评论

默认配置下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-

设置Kubernetes master可调度pod插图

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

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

设置Kubernetes master可调度pod插图1

文章转载于:https://www.cnblogs.com/Dev0ps/p/12164272.html

原著是一个有趣的人,若有侵权,请通知删除

本博客所有文章如无特别注明均为原创。
复制或转载请以超链接形式注明转自起风了,原文地址《设置Kubernetes master可调度pod
   

还没有人抢沙发呢~