置顶 精华 提问 K8s Pod 一直处于 Pending 状态,describe 显示 3 nodes had taints

Docker/K8s 5714 浏览 3 回复 2026-09-06 23:12 悬赏 30 积分
👍217
⭐收藏
运维老王 楼主 Lv7 ・中国台湾
2026-09-06 23:12 5714 阅读 3 回复

部署一个 Deployment 后 Pod 一直是 Pending,events 里看到:

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

master 节点有 NoSchedule 污点,但我的 work 节点应该没有啊?

Docker/K8s 置顶 精华 提问 悬赏 30
回复 👍 27
全部回复 3 条
云原生小分队 ・内蒙古

先执行 kubectl describe node <node> | grep -i taint 看看具体污点。

常见情况:worker 节点被打了 node-role.kubernetes.io/control-plane 或者自定义污点。

Lv6 2026-09-07 02:52 2 楼
回复 👍 49
运维老王 ・中国台湾

查到了,worker 节点有 dedicated=gpu:NoSchedule,之前测试留下的。

Lv7 2026-09-07 03:10 3 楼
回复 👍 71
云原生小分队 ・内蒙古

去掉即可:

kubectl taint nodes <node> dedicated=gpu:NoSchedule-

注意最后的减号。

Lv6 2026-09-07 03:52 4 楼
回复 👍 83
发表回复
登录 后参与回复