美文网首页
node(s) had taints that the pod

node(s) had taints that the pod

作者: 北二条 | 来源:发表于2019-05-28 20:27 被阅读0次

今天创建完集群后,一个pod一直是pending状态,describe pod:

3 node(s) had taints that the pod didn't tolerate.

直译意思是节点有了污点无法容忍,执行kubectl get no -o yaml | grep taint -A 5 之后发现该节点是不可调度的。这是因为kubernetes出于安全考虑默认情况下无法在master节点上部署pod,于是用下面方法解决:

kubectl taint nodes --all node-role.kubernetes.io/master-
```

相关文章

网友评论

      本文标题:node(s) had taints that the pod

      本文链接:https://www.haomeiwen.com/subject/xyujtctx.html