1 node(s) had taints that the pod didn't tolerate
异界神域 2020-01-21 11:37:28 1512 已收藏
展开
允许master节点部署pod
kubectl taint nodes --all node-role.kubernetes.io/master-
如果不允许调度
kubectl taint nodes master1 node-role.kubernetes.io/master=:NoSchedule
污点可选参数
NoSchedule: 一定不能被调度
PreferNoSchedule: 尽量不要调度
NoExecute: 不仅不会调度, 还会驱逐Node上已有的Pod
本文详细介绍了Kubernetes中如何通过设置节点污点来控制Pod的调度行为,包括NoSchedule、PreferNoSchedule及NoExecute三种策略,以及如何使用kubectl命令对master节点进行操作。
2253

被折叠的 条评论
为什么被折叠?



