question

GopinathRajee-8127 avatar image
0 Votes"
GopinathRajee-8127 asked prmanhas-MSFT answered

Kubectl erroring out

All,

Since yesterday, when I run kubectl I'm getting the bellow error:

C:\Users\username>kubectl get nodes
Unable to connect to the server: net/http: TLS handshake timeout


From the portal's Cloudshell, it returns the following error

Unable to connect to the server: dial tcp xx.xxx.xx.xx:443: i/o timeout

We have SQLServer BDC deployed on AKS and I'm able to connect to the endpoints using Azure Data Studio.

kubectl is not corrupt either since I can run kubectl fine without any arguments.

I also tried updating kubectl via "az aks install-cli" but it is not helping.

Can someone point me in the right direction?

Thanks,
grajee

azure-kubernetes-service
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

prmanhas-MSFT avatar image
0 Votes"
prmanhas-MSFT answered

@GopinathRajee-8127 Apologies for the delay in response and all the inconvenience caused because of the issue.

I digged into issue little and found out that there are n number of reasons which might lead to Timeout errors.

I am pointing out few of them here which might be helpful.

  • For Troubleshooting TCP timeout error you can refer to this documentation which is specifically for troubleshooting Kubernetes issue.

  • This might because of insufficient resources. Try to increase the resource limits in your Docker preferences. You can refer to this for more info.

  • Similar issue has been reported here as well which is pointing toward the location in which the cluster has been deployed.

  • Another thread with similar issue and workarounds mentioned is here.

  • This thread points toward the network aspect of it where issues was resolved by using a static IP address.

I do understand that you might have already gone through few of these to troubleshoot the issue and the may or may not be helpful. Azure Support is the best resource I will recommend to help you out with your issue since it was working completely fine and stopped few days back. They might have required tools and expertise to check on same. If you have a Support Plan I would request you to open a Support Ticket. If not do let me know I can help out with one time free technical Support for you.

Hope it helps!!!

Please "Accept as Answer" if it helped so it can help others in community looking for help on similar topics.






5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.