File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
pkg/controller/nodelifecycle Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -623,8 +623,10 @@ func (nc *Controller) doEvictionPass() {
623
623
}
624
624
625
625
// monitorNodeHealth verifies node health are constantly updated by kubelet, and
626
- // if not, post "NodeReady==ConditionUnknown". It also evicts all pods if node
627
- // is not ready or not reachable for a long period of time.
626
+ // if not, post "NodeReady==ConditionUnknown".
627
+ // For nodes who are not ready or not reachable for a long period of time.
628
+ // This function will taint them if TaintBasedEvictions feature was enabled.
629
+ // Otherwise, it would evict it directly.
628
630
func (nc * Controller ) monitorNodeHealth () error {
629
631
// We are listing nodes from local cache as we can tolerate some small delays
630
632
// comparing to state from etcd and there is eventual consistency anyway.
You can’t perform that action at this time.
0 commit comments