Unverified Commit 0889c3e4 authored by Kubernetes Prow Robot's avatar Kubernetes Prow Robot Committed by GitHub

Merge pull request #75761 from fenggw-fnst/mybranch

Fix comments about node health monitor
parents c3bec0ba 5714041f
...@@ -623,8 +623,10 @@ func (nc *Controller) doEvictionPass() { ...@@ -623,8 +623,10 @@ func (nc *Controller) doEvictionPass() {
} }
// monitorNodeHealth verifies node health are constantly updated by kubelet, and // monitorNodeHealth verifies node health are constantly updated by kubelet, and
// if not, post "NodeReady==ConditionUnknown". It also evicts all pods if node // if not, post "NodeReady==ConditionUnknown".
// is not ready or not reachable for a long period of time. // 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 { func (nc *Controller) monitorNodeHealth() error {
// We are listing nodes from local cache as we can tolerate some small delays // 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. // comparing to state from etcd and there is eventual consistency anyway.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment