KB:Kubernetes Taints and Tolerations
How Taints and Tolerations Work Together:
- Taint: Applied to nodes to indicate that they should repel certain pods.
- Toleration: Applied to pods to indicate that they can be scheduled on nodes with matching taints.
The effect in the toleration must exactly match the effect in the taint for the toleration to work. If they do not match, the toleration will not counteract the taint, and the pod will be treated as if it has no toleration for that taint.
When you exclude the effect field in a toleration, the toleration matches any taint with the specified key and value, regardless of the effect. This is a shorthand way of writing a toleration that matches taints with any effect.
Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/
Comments
Post a Comment