diff --git a/cmd/tiller/tiller.go b/cmd/tiller/tiller.go index 185bf4b6c0ca18649eb2cf0575cd1540d693281e..e0c10cb294aca6e9972994115033c66d4912833b 100644 --- a/cmd/tiller/tiller.go +++ b/cmd/tiller/tiller.go @@ -157,15 +157,16 @@ func start() { logger.Fatalf("Could not create server TLS configuration: %v", err) } opts = append(opts, grpc.Creds(credentials.NewTLS(cfg))) - opts = append(opts, grpc.KeepaliveParams(keepalive.ServerParameters{ - MaxConnectionIdle: 10 * time.Minute, - // If needed, we can configure the max connection age - })) - opts = append(opts, grpc.KeepaliveEnforcementPolicy(keepalive.EnforcementPolicy{ - MinTime: time.Duration(20) * time.Second, // For compatibility with the client keepalive.ClientParameters - })) } + opts = append(opts, grpc.KeepaliveParams(keepalive.ServerParameters{ + MaxConnectionIdle: 10 * time.Minute, + // If needed, we can configure the max connection age + })) + opts = append(opts, grpc.KeepaliveEnforcementPolicy(keepalive.EnforcementPolicy{ + MinTime: time.Duration(20) * time.Second, // For compatibility with the client keepalive.ClientParameters + })) + rootServer = tiller.NewServer(opts...) lstn, err := net.Listen("tcp", *grpcAddr)