一篇带给你pod创建源码分析

复制// 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.

THE END
本站服务器由亿华云赞助提供-企业级高防云服务器