mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-14 05:36:12 +00:00
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:
@@ -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.
|
||||
|
Reference in New Issue
Block a user