如何处理错误 "dial tcp 10.240.0.4:10250: i/o timeout" 以在 AKS 中查看 pod 的日志?
How to deal with error "dial tcp 10.240.0.4:10250: i/o timeout" to see pod's logs in AKS?
在我可以 运行 这个命令之前 kubectl logs <pod>
对于许多 days/versions 没有问题。然而,在我推送另一个图像并最近部署后,我遇到了以下错误:
Error from server: Get https://aks-agentpool-xxx-0:10250/containerLogs/default/<-pod->/<-service->: dial tcp 10.240.0.4:10250: i/o timeout
我尝试重新构建和重新部署但失败了。
以下是供参考的节点信息:
不确定您的问题是否是由troubleshooting中描述的问题引起的。但也许你可以试试看,如下所示:
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.
在我可以 运行 这个命令之前 kubectl logs <pod>
对于许多 days/versions 没有问题。然而,在我推送另一个图像并最近部署后,我遇到了以下错误:
Error from server: Get https://aks-agentpool-xxx-0:10250/containerLogs/default/<-pod->/<-service->: dial tcp 10.240.0.4:10250: i/o timeout
我尝试重新构建和重新部署但失败了。
以下是供参考的节点信息:
不确定您的问题是否是由troubleshooting中描述的问题引起的。但也许你可以试试看,如下所示:
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 thekube-system
namespace using thekubectl get pods --namespace kube-system
command. If it isn't, force deletion of the pod and it will restart.