Azure Kubernetes:如何处理错误“拨号TCP 10.240.0.4:10250:I/O超时"看kubectl日志< pod&gt ;? [英] Azure Kubernetes: How can I deal with Error "dial tcp 10.240.0.4:10250: i/o timeout" to see kubectl logs <pod>?

查看:364
本文介绍了Azure Kubernetes:如何处理错误“拨号TCP 10.240.0.4:10250:I/O超时"看kubectl日志< pod&gt ;?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在很多天/版本没有问题之前,我可以运行此命令kubectl logs <pod>.但是,在我推送另一个映像并最近部署之后,我遇到了以下错误:

Before I could run this command kubectl logs <pod> without issue for many days/versions. However, after I pushed another image and deployed recently, I faced below error:

来自服务器的错误:获取 https://aks-agentpool-xxx-0 :10250/containerLogs/default/< -pod->/< -service->:拨打tcp 10.240.0.4:10250:I/O超时

Error from server: Get https://aks-agentpool-xxx-0:10250/containerLogs/default/<-pod->/<-service->: dial tcp 10.240.0.4:10250: i/o timeout

我试图重新构建并重新部署,但是失败了.

I tried to re-build and re-deploy but failed.

以下是供参考的节点信息:

Below was the Node info for reference:

推荐答案

不确定您的问题是否是由

Not sure if your issue is caused by the problem described in this troubleshooting. But maybe you can take a try, it shows below:

确保未修改默认网络安全组,并且 端口22和9000都已打开以连接到API服务器. 检查Tunnelfront Pod是否在kube系统中运行 使用kubectl get pods --namespace kube-system命令命名空间. 如果不是,请强行删除Pod,它将重新启动.

Make sure that the default network security group isn't modified and that both port 22 and 9000 are open for connection to the API server. Check whether the tunnelfront pod is running in the kube-system namespace using the kubectl get pods --namespace kube-system command. If it isn't, force deletion of the pod and it will restart.

这篇关于Azure Kubernetes:如何处理错误“拨号TCP 10.240.0.4:10250:I/O超时"看kubectl日志&lt; pod&gt ;?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆