mirror of https://github.com/k3s-io/k3s
Bugfix: cloud-controller-manager routeController.run() block in WaitForCacheSync
parent
e60cc6ee3d
commit
c9535869fc
|
@ -237,7 +237,7 @@ func StartControllers(s *options.CloudControllerManagerServer, kubeconfig *restc
|
|||
glog.Warning("configure-cloud-routes is set, but cloud provider does not support routes. Will not configure cloud provider routes.")
|
||||
} else {
|
||||
routeController := routecontroller.New(routes, client("route-controller"), sharedInformers.Core().V1().Nodes(), s.ClusterName, clusterCIDR)
|
||||
routeController.Run(stop, s.RouteReconciliationPeriod.Duration)
|
||||
go routeController.Run(stop, s.RouteReconciliationPeriod.Duration)
|
||||
time.Sleep(wait.Jitter(s.ControllerStartInterval.Duration, ControllerStartJitter))
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue