Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cmd/metrics-server/app/options/kubelet_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,9 @@ func (o KubeletClientOptions) Config(restConfig *rest.Config) *client.KubeletCli
config.Client.TLSClientConfig = rest.TLSClientConfig{} // empty TLS config --> no TLS
}
if o.InsecureKubeletTLS {
config.Client.TLSClientConfig = rest.TLSClientConfig{}
config.Client.TLSClientConfig.Insecure = true
config.Client.TLSClientConfig.CAData = nil
config.Client.TLSClientConfig.CAFile = ""
config.Client.TLSClientConfig.NextProtos = []string{"http/1.1", "h2"}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we should proceed with this change. Kubelet supports http/2 by default, so it would be more efficient to have http/2 over http/1.1 by default.

But if this solves the reported issue, could it be that EKS LB needs to be configured by users to supports http/2?

}
if len(o.KubeletCAFile) > 0 {
config.Client.TLSClientConfig.CAFile = o.KubeletCAFile
Expand Down