污点调度问题
来源:6-6 taints toerations调度(中)

404_
2023-05-01
老师上课是给某一个node打的污点是 app=test:NoSchedule
然后建立pod的yaml文件中 spec.nodeSelector: “app”: "test
这这个pod无法完成调度。这种情况我理解。
但是我发现,我给一个node上打了标签 “test”: “app”,然后给这个node再打上污点 key1=value1:NoSchedule
然后建立pod的yaml文件中 spec.nodeSelector: “test”: "app"
这个pod无法完成调度。但是这个node上的污点的key 和value是key1=value1。
我的理解是 key1=value1:NoSchedule 表示 pod的标签是key1=value1则不调度到这个节点上。但是此时pod的标签不是 key1=value1,我感觉可以调度到这个node上,但结果是没有办法调度。
pod处于Pending
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Warning FailedScheduling 49s (x10 over 9m17s) default-scheduler 0/3 nodes are available: 1 node(s) didn't match Pod's node affinity/selector, 1 node(s) had taint {key1: value1}, that the pod didn't tolerate, 1 node(s) were unschedulable.
写回答
1回答
-
暮闲
2023-05-01
同学你好 node污点和pod的标签没有关系,是和pod的tolerations才有关系哦00
相似问题