199
Comment: Fix spelling mistake
|
665
|
Deletions are marked like this. | Additions are marked like this. |
Line 4: | Line 4: |
* '''Taint''' added to Node * Pods can have '''Tolerations''' they can tolerate the taint |
* '''Taint's''' added to Node * There is 3 taint effects, for pods with no Toleration for the taint key=value:taint-effect 1. !NoSchedule 2. !PreferNoSchedule 3. !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 }}} * 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 }}} |
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