diff --git a/kube-client/Cargo.toml b/kube-client/Cargo.toml index ae7cbb71a..b82886aec 100644 --- a/kube-client/Cargo.toml +++ b/kube-client/Cargo.toml @@ -63,9 +63,9 @@ tokio = { workspace = true, features = ["time", "signal", "sync"], optional = tr kube-core = { path = "../kube-core", version = "=2.0.0" } jsonpath-rust = { workspace = true, optional = true } tokio-util = { workspace = true, features = ["io", "codec"], optional = true } -hyper = { workspace = true, features = ["client", "http1"], optional = true } -hyper-util = { workspace = true, features = ["client", "client-legacy", "http1", "tokio", "tracing"], optional = true } -hyper-rustls = { workspace = true, features = ["http1", "logging", "native-tokio", "tls12"], optional = true } +hyper = { workspace = true, features = ["client", "http1", "http2"], optional = true } +hyper-util = { workspace = true, features = ["client", "client-legacy", "http1", "http2", "tokio", "tracing"], optional = true } +hyper-rustls = { workspace = true, features = ["http1", "http2", "logging", "native-tokio", "tls12"], optional = true } tokio-tungstenite = { workspace = true, optional = true } tower = { workspace = true, features = ["buffer", "filter", "util"], optional = true } tower-http = { workspace = true, features = ["auth", "map-response-body", "trace"], optional = true } diff --git a/kube-client/src/client/config_ext.rs b/kube-client/src/client/config_ext.rs index ccdb3f600..e81f7f2e8 100644 --- a/kube-client/src/client/config_ext.rs +++ b/kube-client/src/client/config_ext.rs @@ -245,7 +245,7 @@ impl ConfigExt for Config { .map_err(Error::RustlsTls)?, )); } - Ok(builder.enable_http1().wrap_connector(connector)) + Ok(builder.enable_http1().enable_http2().wrap_connector(connector)) } #[cfg(feature = "openssl-tls")]