Taints & Nodes
Taints: Are applied on Noded
Toleration: Tolerations are applied to Pods
kubectl taint nodes node-name key=value:taintEffect
Taint Effects tells Pods , what will happen to the Pods that do not tolerate the taint
There are three taint effects
--NoSchedule : which means the Pods will not be scheduled on the Node
-- PreferNoSchedule: which means the system will try not to schedule the Pod . But this is not guaranteed.
--NoExecute: Which mean new Pods will not be scheduled on the node and existing Pods will be evicted. These Pods may have been scheduled before the taint was applied.
kubectl taint nodes node1 app=blue:NoSchedule
Comments
Post a Comment