kubelet logs print 'kubelet nodes sync' frequently

Signed-off-by: chymy <chang.min1@zte.com.cn>
This commit is contained in:
chymy 2021-01-18 16:22:49 +08:00
parent d72c056260
commit f25b902b83

View File

@ -444,7 +444,6 @@ func NewMainKubelet(kubeCfg *kubeletconfiginternal.KubeletConfiguration,
nodeLister = kubeInformers.Core().V1().Nodes().Lister()
nodeHasSynced = func() bool {
if kubeInformers.Core().V1().Nodes().Informer().HasSynced() {
klog.Infof("kubelet nodes sync")
return true
}
klog.Infof("kubelet nodes not sync")