Differences between revisions 2 and 3
Revision 2 as of 2021-10-20 06:14:10
Size: 199
Editor: PieterSmit
Comment: Fix spelling mistake
Revision 3 as of 2021-10-20 06:24:08
Size: 665
Editor: PieterSmit
Comment:
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
      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/TaintsAndTolerations (last edited 2021-10-20 07:21:14 by PieterSmit)