Taints和Tolerations -- 污点- 容忍

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"





猜你喜欢

转载自www.cnblogs.com/hixiaowei/p/9672308.html