必须容忍 node 上的所有污点才可能调度
pod.spec.tolerations <[]Object>
tolerations:- key: "k1"operator: "Equal"value: "v1"effect: "NoSchedule"- key: "k2"operator: "Equal"value: "v2"effect: "NoExecute"tolerationSeconds: 300
operator 为 Exists 将会忽略 value 对应的值 , 默认是 Equal
tolerations:
- key : “xxx”
operatpr: “Exists” # 只要有这个 key的污点都容忍
tolerations:
- operatpr: “Exists” # 所有污点都容忍
tolerationSeconds 必须配合 NoExecute
不指定 tolerationSeconds ,容忍此污点的 pod 不驱逐
指定 tolerationSeconds, 到了时间驱逐 pod
