复制// syncLoop is the main loop for processing changes. It watches for changes from // three channels (file,篇带 apiserver, and http) and creates a unionof them. For // any new change seen, will run a sync against desired state and running state. If // no changes are seen to the configuration, will synchronize the last known desired // state every sync-frequency seconds. Never returns. // syncLoop是处理更改的主循环。它感知来自三个channel(file,创建apiserver,http)的pod的网站模板变化,并且聚合它们。源码有任何的分析改变发生,云服务器将运行状态同步为期望状态。篇带反之,创建则在每个同步周期内同步最后已知的源码期望状态。高防服务器 func (kl *Kubelet) syncLoop(updates <-chan kubetypes.PodUpdate,分析 handler SyncHandler) { klog.InfoS("Starting kubelet main sync loop") 1.2.3.4.5.6.7.8.