-
Notifications
You must be signed in to change notification settings - Fork 986
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
Issue communicating with cluster -- dial tcp: i/o timeout #1167
Comments
@bryankaraffa Are you creating the EKS cluster in the same |
@alexsomesan -- Yes the |
This made me think of an issue we're going to solve with the next release. The issue is, when one of the
Potentially, that could override your token. Though I'm not sure if an invalid token will give you an i/o timeout. Another possibility is a race condition: the provider could be attempting to read the API before the EKS cluster is ready. To avoid this scenario, I recommend using a data source instead of referencing the module here:
Here's the configuration I've got in a PR to add to our EKS example:
The part I want to emphasize is the |
Marking this issue as stale due to inactivity. If this issue receives no comments in the next 30 days it will automatically be closed. If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. This helps our maintainers find and focus on the active issues. Maintainers may also remove the stale label at their discretion. Thank you! |
Closing this for now because we are not able to replicate anymore with latest version of providers.. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Terraform Version, Provider Version and Kubernetes Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
Kubernetes provider is failing to communicate with kubernetes cluster:
https://gist.github.com/bryankaraffa/8d473ee172075d2016211f59655fd099#file-failed-http-request-to-kubernetes-cluster-with-terraform-binaries-txt
The same exact request works with another binary [curl]:
https://gist.github.com/bryankaraffa/8d473ee172075d2016211f59655fd099#file-same-request-works-with-curl-txt
Expected Behavior
We expect the Kubernetes provider to be able to refresh / communicate with kubernetes cluster because there's no network route or connectivity issues [validated with curl]. Also, this behavior is only able to be reproduced on 2 of our teams local machines -- other team members and our CI/CD system can run the plan with no issues.
With the v2.x provider, we are expecting any local KUBECONFIG env or configuration in ~/.kube/config to be ignored by the kubernetes provider [we are passing cluster host, token, and certificate statically - providers.tf]
Actual Behavior
Kubernetes provider is failing to communicate with the cluster like there is an issue with the network route / connectivity [which we validated there is not with curl]
Important Factoids
I suspect this is a local configuration / conflict... This behavior is only able to be reproduced on 2 of our teams local machines -- other team members, and our CI/CD system can run the plan with no issues. From the troubleshooting we have done and because we are able to reproduce this behavior 100% of the time on 2 particular team member's machines, I feel like we've eliminated the possibility this is an issue with general internet connectivity that is intermittent..
References
Did not find anything related
Community Note
The text was updated successfully, but these errors were encountered: