Wait for kube-apiserver for 2 minutes for slow (ARM) systems

This commit is contained in:
Darren Shepherd 2019-01-22 13:41:52 -07:00 committed by Rafael Breno
parent 9a3e03cac1
commit f828b968b9

View File

@ -614,7 +614,7 @@ func CreateControllerContext(ctx context.Context, s *config.CompletedConfig, roo
// If apiserver is not running we should wait for some time and fail only then. This is particularly // If apiserver is not running we should wait for some time and fail only then. This is particularly
// important when we start apiserver and controller manager at the same time. // important when we start apiserver and controller manager at the same time.
if err := genericcontrollermanager.WaitForAPIServer(versionedClient, 10*time.Second); err != nil { if err := genericcontrollermanager.WaitForAPIServer(versionedClient, 120*time.Second); err != nil {
return ControllerContext{}, fmt.Errorf("failed to wait for apiserver being healthy: %v", err) return ControllerContext{}, fmt.Errorf("failed to wait for apiserver being healthy: %v", err)
} }