Azure中的Kubernetes-无法连接到服务器:proxyconnect tcp:拨号tcp:查找http:没有这样的主机 [英] Kubernetes in Azure - Unable to connect to the server: proxyconnect tcp: dial tcp: lookup http: no such host
问题描述
我是Azure的新手.我已经在Azure中安装了Kubernetes集群v1.10.3,并按照以下步骤进行操作,以便从控制台操作kubernetes.
I'm new in Azure. I've install a Kubernetes Cluster v1.10.3 in Azure and followed the steps in order to operate kubernetes from console.
当我尝试通过执行 kubectl get pods
来获取任何资源(例如豆荚)时,我将得到以下错误:
When I try to get any resource, for example the pods, by executing kubectl get pods
, I'm getting back the following error:
无法连接到服务器:proxyconnect tcp:拨号tcp:查找http:没有此类主机
同样,如果我尝试使用AKS执行任何其他命令,例如下一个 az aks browse --resource-group POC_Service_Mesh --name ServiceMeshCluster
,则会返回以下错误:
Equally, if I try to execute any other command by using AKS, for example next one az aks browse --resource-group POC_Service_Mesh --name ServiceMeshCluster
, you get back the following error:
无法连接到服务器:proxyconnect tcp:拨号tcp:查找http:没有这样的主机.
我的地区是西欧.
最后,Kubernetes v.1.9.6也会出现此问题.因此,我已更新至v.1.10.3.
Finally, this issue occurs also with Kubernetes v.1.9.6. Because of that, I've updated to v.1.10.3.
有什么建议吗?非常感谢! :-)
Any suggestion? Thanks a lot! :-)
推荐答案
我已经解决了这个问题.
I've just solved the issue.
最后是代理问题,它阻止了所有通信.
Finally it was a matter with the proxy, which was blocking all communications.
还是非常感谢!
这篇关于Azure中的Kubernetes-无法连接到服务器:proxyconnect tcp:拨号tcp:查找http:没有这样的主机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!