出于安全考虑,默认配置下Kubernetes不会将Pod调度到Master节点。如果希望将k8s-master也当作Node使用,可以执行如下命令:
$ kubectl taint node master node-role.kubernetes.io/master-
上述master为主节点的hostname,如果要恢复Master Only状态,执行如下命令:
$ kubectl taint node master node-role.kubernetes.io/master=:NoSchedule
到此 Kubernetes 将Pod调度到Master节点介绍完成。
最后
以上就是无聊紫菜最近收集整理的关于Kubernetes 将Pod调度到Master节点的全部内容,更多相关Kubernetes内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复