mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 07:20:13 +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:
parent
c4e2ade371
commit
46c302b4c2
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user