-
-
Notifications
You must be signed in to change notification settings - Fork 307
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrading to 0.77
on IPv6 cluster results in hostname mismatch
#1109
Comments
Also spinning up an IPv4 cluster to test and see if this behavior exists there as well ☁️ |
IPv4 cluster works fine, but I do notice that the IP is being used instead of the DNS service here as well:
|
Ah, that's annoying. I was hoping that the IP based setup would work most places with the If you change the |
Interesting that it's only for V6 though, wonder if there is something hyper-rustls related (they did some V6 changes AFAICR) |
Thanks for the tip! This works: let incluster_config = kube::Config::incluster_dns().context(agent_error::ConfigCreateSnafu)?;
let k8s_client =
kube::client::Client::try_from(incluster_config).context(agent_error::ClientCreateSnafu)?; |
We are planning on changing See #1184. |
Current and expected behavior
Upgraded to
0.77
ofkube
for our controller, which uses therustls-tls
feature, and now, we are seeing the follow errors on creating clients:We are using
to create an inferred client from the environment.
I dropped the following into my code just before the client is created to see what was going on and redeployed the controller:
Here's what it looks like with 0.76:
Here's what it looks like with 0.77:
I'm guessing this is likely related to #1003. However, my assumption reading the following code:
kube/kube-client/src/config/mod.rs
Lines 219 to 235 in 7b9c4fe
leads me to believe this should be covered and we'd get a similar behavior to when
incluster_dns
was being called (instead of manually modifying thecluster_url
field). What am I missing? Why is the IP being evaluated here instead of replaced?Environment
Configuration and features
Here's my change in our
Cargo.toml
:The text was updated successfully, but these errors were encountered: