Azure Kubernetes: How can I deal with Error "dial tcp 10.240.0.4:10250: i/o timeout" to see kubectl logs <pod>?

9/10/2019

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:

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: Node Info

-- DaiKeung
azure-kubernetes
kubectl
kubernetes
tcp
timeout

1 Answer

9/12/2019

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

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.

-- Charles Xu
Source: StackOverflow