k8s设置污点容忍

方法一:

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

方法二:

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

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

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

你可能感兴趣的:(k8s,kubernetes)