From 5714041f544e000dac1d1dba7fa133bc7b984803 Mon Sep 17 00:00:00 2001 From: Guangwen Feng Date: Tue, 19 Mar 2019 14:38:25 +0800 Subject: [PATCH] Fix comments about node health monitor Signed-off-by: Guangwen Feng --- pkg/controller/nodelifecycle/node_lifecycle_controller.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkg/controller/nodelifecycle/node_lifecycle_controller.go b/pkg/controller/nodelifecycle/node_lifecycle_controller.go index da04e6256cf..98e1a63934b 100644 --- a/pkg/controller/nodelifecycle/node_lifecycle_controller.go +++ b/pkg/controller/nodelifecycle/node_lifecycle_controller.go @@ -623,8 +623,10 @@ func (nc *Controller) doEvictionPass() { } // monitorNodeHealth verifies node health are constantly updated by kubelet, and -// if not, post "NodeReady==ConditionUnknown". It also evicts all pods if node -// is not ready or not reachable for a long period of time. +// if not, post "NodeReady==ConditionUnknown". +// For nodes who are not ready or not reachable for a long period of time. +// This function will taint them if TaintBasedEvictions feature was enabled. +// Otherwise, it would evict it directly. func (nc *Controller) monitorNodeHealth() error { // We are listing nodes from local cache as we can tolerate some small delays // comparing to state from etcd and there is eventual consistency anyway.