Posts

Showing posts with the label Taints

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. Importance of Matching Effects 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. For a toleration to work, the effect field in the toleration must match the effect field in the taint on the node. If they do not match, the toleration will not counteract the taint, and the pod will not be scheduled on the node. 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/sche...