how to locate the sync interval and rewrite it in kubelet.go?

10/16/2019

I want to adjust the kubelet sync interval. and it said that was 10s. but i can t find out where it is or how to change it.

//sync interval is defaulted to 10s.

-- Richard Lee
kubelet
kubernetes

1 Answer

10/23/2019

I find out that the interval is related to the flag --sync-period of kubelet,it is 1 min at normal ,and the interval work in the function pod_worker->wrap_up->workqueue.enqueue. So, i have resolved it

-- Richard Lee
Source: StackOverflow