1.taint 定义在node上,排斥pod

2.toleration定义在pod中,容忍pod

3.可以在命令行为Node节点添加Taints:  kubectl taint nodes node1 foo=bar:NoSchedule

4.在pod的定义文件spec中加入tolerations,

apiVersion: v1
kind: Pod
...
spec:
        tolerations:
        - key: "foo"
          operator: "Equal"
          value: "bar"
          effect: "NoScheduale"





相关文章: