Azure Kubernetes: TLS handshake timeout

匿名 (未验证) 提交于 2019-12-03 08:52:47

问题:

I created a new cluster as per the Azure guide and created the cluster without issue but when I enter the kubectl get nodes to list the nodes I only get this response Unable to connect to the server: net/http: TLS handshake timeout.

I tried once in the Cloud Shell and once on my machine using the latest version of the Azure CLI (2.0.20).

I saw that there was a similar earlier issue regarding Service Principal credentials, which I updated but that didn't seem to solve my issue either.

Any guidance would be greatly appreciated.

回答1:

Piling on: we are adding capacity as fast as possible for the preview.



回答2:

For now, Azure AKS still in preview. We have a general service outage in West US 2 that we are investigating.

During the time we investigate, cluster creations in West US 2 will not be possible and existing customers might not work.

We will update this thread when we fix the issue.

We apologize for the inconvenience.



回答3:

The solution to this one for me was to scale the nodes up ― and then back down ― for my impacted Cluster from the Azure Kubernetes service blade web console.

Workaround / Potential 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

Also added this solution 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 Kubernetes server? (AKS)



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