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"





posted @ 2018-09-19 00:37  littlevigra  阅读(718)  评论(0编辑  收藏  举报