方法一:

tolerations:
- key: "key1"
  operator: "Equal"
  value: "value1"
  effect: "NoSchedule"

方法二:

tolerations:
- key: "key1"
  operator: "Exists"
  effect: "NoSchedule"

如何容忍所有污点呢?将key设置为空字符串即可

tolerations:
- key: ""
  operator: "Exists"
  effect: "NoSchedule"

Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐