Taint と Toleration とは?
taint はnodeに適用されてpodをはじくプロパティであり、toleration はpod側の対応するプロパティで、taintされたnodeへのスケジューリングを許可します。両者を組み合わせることで、オペレーターはGPUのjobやシステムコンポーネントなど、特定のworkloadのためにnodeを予約できます。一致するtolerationを持たないpodは、taintされたnodeから遠ざけられます。
なぜ重要か
taint と toleration は、どのworkloadがどこに配置されるかを大まかに制御し、affinityルールを補完します。専用ハードウェアの分離、nodeの安全なdrain、あるいは一般的なworkloadをcontrol-planeのnodeから遠ざけるためによく使われます。
関連ガイド
What Is Node Affinity?Node affinity is a Kubernetes scheduling rule that attracts or restricts pods to nodes matching specified lab…
What Is Pod Affinity?Pod affinity and anti-affinity are Kubernetes rules that schedule pods near or away from other pods based on…
What Is a Pod Disruption Budget?A pod disruption budget limits how many pods of a workload can be voluntarily taken down at once, protecting…