fix nodeNotReady once after kubelet restart: execute updateRuntimeUp before syncNodeStatus
This commit is contained in:
		@@ -1636,9 +1636,14 @@ func (kl *Kubelet) Run(updates <-chan kubetypes.PodUpdate) {
 | 
				
			|||||||
		// Introduce some small jittering to ensure that over time the requests won't start
 | 
							// Introduce some small jittering to ensure that over time the requests won't start
 | 
				
			||||||
		// accumulating at approximately the same time from the set of nodes due to priority and
 | 
							// accumulating at approximately the same time from the set of nodes due to priority and
 | 
				
			||||||
		// fairness effect.
 | 
							// fairness effect.
 | 
				
			||||||
		go wait.JitterUntil(kl.syncNodeStatus, kl.nodeStatusUpdateFrequency, 0.04, true, wait.NeverStop)
 | 
							go func() {
 | 
				
			||||||
 | 
								kl.updateRuntimeUp()
 | 
				
			||||||
 | 
								wait.JitterUntil(kl.syncNodeStatus, kl.nodeStatusUpdateFrequency, 0.04, true, wait.NeverStop)
 | 
				
			||||||
 | 
							}()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		go kl.fastStatusUpdateOnce()
 | 
							go kl.fastStatusUpdateOnce()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		// start syncing lease
 | 
							// start syncing lease
 | 
				
			||||||
		go kl.nodeLeaseController.Run(context.Background())
 | 
							go kl.nodeLeaseController.Run(context.Background())
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user