本文介绍了Azure Kubernetes:TLS握手超时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我根据 Azure指南并成功创建了集群,但是当我输入kubectl get nodes列出节点时,我只会得到此响应Unable to connect to the server: net/http: TLS handshake timeout.

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.

我在Cloud Shell中尝试过一次,在计算机上使用最新版本的Azure CLI(2.0.20)尝试过一次.

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.

任何指导将不胜感激.

推荐答案

对我来说,此解决方案是从Azure Kubernetes服务刀片Web控制台为受影响的群集扩展节点,然后再缩减节点.

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.

  1. 登录到Azure控制台-Kubernetes服务刀片.
  2. 按1个节点向上扩展群集.
  3. 等待比例尺完成并尝试连接(您应该能够).
  4. 将群集缩小到正常大小,以避免成本增加.

我花了大约2分钟的时间.

Total time it took me ~2 mins.

还将此解决方案添加到我在此处发布的完整票证说明中(如果您想了解更多信息,请阅读):

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

无法连接网络/http:TLS握手超时"-为什么Kubectl无法连接到Azure Kubernetes服务器? (AKS)

这篇关于Azure Kubernetes:TLS握手超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-24 12:25