设置Kubernetes master可调度pod

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

猜你喜欢

转载自www.cnblogs.com/Dev0ps/p/12164272.html