mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	Fix comments about node health monitor
Signed-off-by: Guangwen Feng <fenggw-fnst@cn.fujitsu.com>
This commit is contained in:
		@@ -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.
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user