-
Notifications
You must be signed in to change notification settings - Fork 135
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
Cannot connect to the cluster: An unknown problem occurred. Consider taking a peek at the debug logs. #4213
Comments
For me, it seems like related to spaces in context name, e.g. cluster-id-John Smith-namespace. This context name is created by a CLI tool that does user authentication in my company. |
thanks for adding that detail @GilbertGeliba - very helpful! |
Nothing helped. I dont see any space issue in my kubeconfig file.. Adding more detailed info in debug logs would help much to narrow down. [root@ ~]# kubectx [11:02:57 - stderr] |
Hi there, |
The thing i found (PS: Pressing on
|
In my case (MacOS connecting to EKS), the debug log just shows a kubectl proxy command kubectl --context="arn:aws:eks:us-west-2:XXX:cluster/YYY" --kubeconfig="/Users/me/.kube/config" \
proxy --port=30007 --append-server-path=true If I run this myself, I see:
If I remove the Perhaps this provides a clue? |
Hi folks! We're having some trouble to reproduce the EKS connectivity problem. We tried with several (new and old) clusters and all of them connect. The authentication works with an ExecConfig using As for debug logs, they would only show after the proxy properly started, which does not help if the proxy boot itself fails. @monojack made a patch release last Thursday to improve logging. Unfortunately, that does still not fix the EKS connectivity issue but it might uncover more information as to why it fails on your end. For those who reached out to us:
Thank you all for taking the time to report this to us. |
For the third issue, I guess it is related to the kubectl version. I am using v1.20.15 due to our cluster version.
|
I repro'd again on MacOS with version 2.4.8:
Debug logs kubectl --context="my-eks-context" --kubeconfig="/Users/me/.kube/config" proxy --port=30027 --append-server-path=true Headlamp, Lens and Octant can now connect. (Headlamp added support recently.) |
I have my k8s cluster up and running in EKS.
When I pass the kubeconfig file to Monokle app. It cannot connect to the cluster.
The text was updated successfully, but these errors were encountered: