mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 06:54:01 +00:00
Fix server initialization for http2 and go 1.7
This commit is contained in:
parent
d5e3832bc0
commit
009f87719b
@ -251,6 +251,9 @@ func (s *GenericAPIServer) Run(options *options.ServerRunOptions) {
|
||||
secureServer.TLSConfig.ClientAuth = tls.RequestClientCert
|
||||
// Specify allowed CAs for client certificates
|
||||
secureServer.TLSConfig.ClientCAs = clientCAs
|
||||
// "h2" NextProtos is necessary for enabling HTTP2 for go's 1.7 HTTP Server
|
||||
secureServer.TLSConfig.NextProtos = []string{"h2"}
|
||||
|
||||
}
|
||||
|
||||
glog.Infof("Serving securely on %s", secureLocation)
|
||||
|
Loading…
Reference in New Issue
Block a user