Merge pull request #3482 from powerhome/bugfix/keepalive-mismatch

Tiller should only enforce what we expect from Helm
pull/2919/merge
Matthew Fisher 7 years ago committed by GitHub
commit 17c2272490
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -157,12 +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.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)

Loading…
Cancel
Save