From b286f9fdac75060c9793b68755cbf41419b96a65 Mon Sep 17 00:00:00 2001 From: Josh Horwitz Date: Tue, 5 Sep 2017 22:41:31 -0400 Subject: [PATCH] Fixed CCM service controller start jitter --- cmd/cloud-controller-manager/app/controllermanager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/cloud-controller-manager/app/controllermanager.go b/cmd/cloud-controller-manager/app/controllermanager.go index d6e60e8ccb3..9c8ed34a074 100644 --- a/cmd/cloud-controller-manager/app/controllermanager.go +++ b/cmd/cloud-controller-manager/app/controllermanager.go @@ -215,8 +215,8 @@ func StartControllers(s *options.CloudControllerManagerServer, kubeconfig *restc glog.Errorf("Failed to start service controller: %v", err) } else { go serviceController.Run(stop, int(s.ConcurrentServiceSyncs)) + time.Sleep(wait.Jitter(s.ControllerStartInterval.Duration, ControllerStartJitter)) } - time.Sleep(wait.Jitter(s.ControllerStartInterval.Duration, ControllerStartJitter)) // If CIDRs should be allocated for pods and set on the CloudProvider, then start the route controller if s.AllocateNodeCIDRs && s.ConfigureCloudRoutes {