Used goroutine to launch node controller's internalPodInformer.

Node controller's internalPodInformer will block main thread
if it is not started as a go routine. This patch fixed this
by runing internalPodInformer as a go routine.
This commit is contained in:
Xing Zhou 2016-09-06 15:39:13 +08:00
parent c4e2ade371
commit 46c302b4c2

View File

@ -388,7 +388,7 @@ func (nc *NodeController) Run() {
go nc.podController.Run(wait.NeverStop)
go nc.daemonSetController.Run(wait.NeverStop)
if nc.internalPodInformer != nil {
nc.internalPodInformer.Run(wait.NeverStop)
go nc.internalPodInformer.Run(wait.NeverStop)
}
// Incorporate the results of node status pushed from kubelet to master.