kube: Connection reset, using in-cluster authentication with the Client
A tried some basic code that connects to API Server:
let client_res = Client::try_default().await?;
client.apiserver_version().await?;
I run it in a Pod, so it is expected to detect and use “in-cluster” authentication.
The error I get on the request is:
HyperError(hyper::Error(Body, hyper::Error(Body, Os { code: 104, kind: ConnectionReset, message: "Connection reset by peer" })))
I am not sure there is good enough error information to understand what caused this error. Is there any logging to enable for this? Any other debug suggestion?
It might be that the ServiceAccount does not have enough permissions for the operation, but then I would expect an error message about that.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 17 (8 by maintainers)
Ah. It’s because the compiled object doesn’t link to openssl, so it isn’t pulled into the container.