Skip to content

Commit 4bfc731

Browse files
committed
add log
1 parent 3c67445 commit 4bfc731

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/kubelet/kubelet.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1637,13 +1637,14 @@ func (kl *Kubelet) Run(updates <-chan kubetypes.PodUpdate) {
16371637
// accumulating at approximately the same time from the set of nodes due to priority and
16381638
// fairness effect.
16391639
go func() {
1640+
// Call updateRuntimeUp once before syncNodeStatus to make sure kubelet had already checked runtime state
1641+
// otherwise when restart kubelet, syncNodeStatus will report node notReady in first report period
16401642
kl.updateRuntimeUp()
16411643
wait.JitterUntil(kl.syncNodeStatus, kl.nodeStatusUpdateFrequency, 0.04, true, wait.NeverStop)
16421644
}()
16431645

16441646
go kl.fastStatusUpdateOnce()
16451647

1646-
16471648
// start syncing lease
16481649
go kl.nodeLeaseController.Run(context.Background())
16491650
}

0 commit comments

Comments
 (0)