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"





相关文章:

  • 2021-11-12
  • 2021-09-03
  • 2021-10-11
  • 2021-06-08
  • 2021-10-12
  • 2021-05-26
  • 2021-07-05
  • 2022-03-03
猜你喜欢
  • 2021-08-15
  • 2022-12-23
  • 2022-12-23
  • 2022-02-20
  • 2021-10-28
  • 2021-04-16
  • 2022-12-23
相关资源
相似解决方案