Skip to content
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

error trying to connect: invalid dnsname - in Kubernetes #3

Closed
jlpettersson opened this issue Aug 9, 2021 · 2 comments
Closed

error trying to connect: invalid dnsname - in Kubernetes #3

jlpettersson opened this issue Aug 9, 2021 · 2 comments

Comments

@jlpettersson
Copy link

I cross-compiled this on MacOS to aarch64 and deployed to a local kind-cluster.
I built it with rustls for kube-rs with this line in Cargo.toml

[dependencies]
kube = { version = "0.57.0", default-features = false, features = ["client", "rustls-tls"] }

But I get many log-lines with this error:

ERROR HTTP{http.method=GET http.url=https://10.96.0.1:443/apis/apps/v1/namespaces/default/deployments? otel.name="list" otel.kind="client" otel.status_code="ERROR"}: kube::client: failed with error error trying to connect: invalid dnsname

This is when I run the version-app as a Deployment in Kubernetes.

Is this something expected? Is it a bug?

@kazk
Copy link
Member

kazk commented Aug 9, 2021

rustls is only supported in-cluster because of kube-rs/kube#153. In cluster support also requires kube 0.59.0 that was just released.

@jlpettersson
Copy link
Author

@kazk Thanks!

When using 0.59.0 on the dependencies, I got this working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants