Managed Azure Kubernetes connection error

泪湿孤枕 提交于 2020-02-05 05:28:58

问题


The error I am getting after running kubectl cluster-info

Kubernetes master is running at https://xxx-xxx-aks-yyyy.hcp.westeurope.azmk8s.io:443

To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'. Unable to connect to the server: net/http: TLS handshake timeout Rifats-MacBook-Pro:~ rifaterdemsahin$ kubectl cluster-info


回答1:


There is some issue on Azure Server. Please refer to this similar issue.

I suggest you could try again, if it still does not work, you could open a ticket or give feedback to Azure.




回答2:


The solution to this one for me was to scale the nodes in my Cluster from the Azure Kubernetes service blade web console (NOT your local terminal since you can't connect with kubectl).

After scaling up by one (and back down to save costs) I am back working again.

Workaround / Solution

  1. Log into the Azure Console — Kubernetes Service blade.
  2. Scale your cluster up by 1 node.
  3. Wait for scale to complete and attempt to connect (you should be able to).
  4. Scale your cluster back down to the normal size to avoid cost increases.

Total time it took me ~2 mins.

More Background Info on the Issue

Added this to the full ticket description write up that I posted over here (if you want more info have a read):

'Unable to connect Net/http: TLS handshake timeout' — Why can't Kubectl connect to Azure AKS server?



来源:https://stackoverflow.com/questions/48229824/managed-azure-kubernetes-connection-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!