0/1 nodes are available: 1 node(s) had taints that the pod didn't tolerate.

允许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
发布了33 篇原创文章 · 获赞 2 · 访问量 2749

猜你喜欢

转载自blog.csdn.net/weixin_43224068/article/details/104060320