k8s/StudyNotes/ Taints & Tolerations
Taint's added to Node
- There is 3 taint effects, for pods with no Toleration for the taint key=value:taint-effect
NoSchedule
PreferNoSchedule
NoExecute => After taint, kills pods on node that cant tolerate taint.
Add a taint to a node Node1A
kubectl taint nodes node1A app=MyPods:NoSchedule
- There is 3 taint effects, for pods with no Toleration for the taint key=value:taint-effect
Pods can have Toleration's they can tolerate the taint, and still schedule to a Tainted node.
The Master Node, starts with taint
kubectl describe node kubemaster | grep Taint
Note, node can be tainted with key:<effect> and not value for the key.