This commit is contained in:
allenfromchina@163.com 2024-04-23 10:45:46 +08:00
parent 3c67445746
commit 4bfc731837

View File

@ -1637,13 +1637,14 @@ func (kl *Kubelet) Run(updates <-chan kubetypes.PodUpdate) {
// accumulating at approximately the same time from the set of nodes due to priority and
// fairness effect.
go func() {
// Call updateRuntimeUp once before syncNodeStatus to make sure kubelet had already checked runtime state
// otherwise when restart kubelet, syncNodeStatus will report node notReady in first report period
kl.updateRuntimeUp()
wait.JitterUntil(kl.syncNodeStatus, kl.nodeStatusUpdateFrequency, 0.04, true, wait.NeverStop)
}()
go kl.fastStatusUpdateOnce()
// start syncing lease
go kl.nodeLeaseController.Run(context.Background())
}