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

相关文章:

  • 2021-12-01
  • 2022-12-23
  • 2021-09-30
  • 2021-11-15
  • 2021-04-27
  • 2021-09-17
  • 2021-07-15
  • 2021-10-28
猜你喜欢
  • 2021-12-13
  • 2022-01-12
  • 2021-06-25
  • 2021-09-27
  • 2022-02-16
  • 2021-10-21
  • 2022-12-23
相关资源
相似解决方案