Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是 kubernetes 的新手,我在想警戒线是如何工作的,它是如何使节点无法调度的。它是否使用带有 NoExecute 效果的污点和容忍的概念,如果不是,那么警戒线与污点和容忍有何不同。
Cordonnode.kubernetes.io/unschedulable:NoSchedule为节点添加了一个污点,更重要的是,将节点对象的 nodes.spec.unschedulable布尔字段更新为true.
node.kubernetes.io/unschedulable:NoSchedule
nodes.spec.unschedulable
true
所以警戒线不仅仅是污点。无论您通过警戒线实现什么,即使节点完全不可调度,都不能仅通过污点来实现。