In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
I. Overview
Taint (stain) and Toleration (tolerance) can act on node and pod, and their purpose is to optimize the scheduling of pod between clusters, which is similar to node affinity, except that they work in the opposite way. Node and pod with taint are mutually exclusive, while node and pod with node affinity are mutually attractive. In addition, you can set label to the node node and schedule the pod to the node with a matching label by setting nodeSelector to the pod.
Taint and toleration work together to prevent pod from being assigned to inappropriate nodes. One or more taint can be applied to each node, which means that pod that cannot tolerate these taint will not be accepted by that node. If toleration is applied to pod, it means that these pod can be (but not required) to be dispatched to a node with the corresponding taint.
2. Node node setting stain and tolerance 1. Setting taintNoSchedule: must not be scheduled PreferNoSchedule: try not to schedule NoExecute: not only will not schedule It will also expel the existing Podkubectl taint nodes node1 key1=value1:NoSchedulekubectl taint nodes node1 key1=value1:NoExecutekubectl taint nodes node1 key2=value2:NoSchedule2 on the Node, view the taintkubectl describe node node13, delete the taint:kubectl taint node node1 key1:NoSchedule- # where the key can be deleted without specifying the valuekubectl taint node node1 key1:NoExecute-kubectl taint node node1 key1- # delete all the effectkubectl taint node node1 key2:NoSchedule- of the specified key III, Pod setting stain and tolerance
For more details, please refer to the
Collocation stain
Kubectl taint nodes 172.16.8.100 node-role.kubernetes.io/etcd=true:NoExecute node-role.kubernetes.io/controlplane=true:NoSchedule
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.