Commit 0b5cdf2
committed
Enable HTTP/2 support in kube-client rustls connector
This change adds HTTP/2 ALPN support to the rustls HTTPS connector by
calling enable_http2() in addition to enable_http1(). This enables
HTTP/2 multiplexing for Kubernetes API connections, reducing the
number of TCP connections from potentially hundreds to a single
multiplexed connection per API server.
Previously, kube-rs only supported HTTP/1.1 connections, resulting in
a new TCP connection for each concurrent API request. With HTTP/2
enabled, multiple requests can be multiplexed over a single connection,
improving performance and reducing resource usage.
Signed-off-by: Andrew McDermott <[email protected]>1 parent 9062eec commit 0b5cdf2
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
248 | | - | |
| 248 | + | |
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
| |||
0 commit comments