Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

connection timed out error Trying to execute kubectl log or kubectl exec -it on pods #74

Closed
ramakrishnateja opened this issue Dec 12, 2017 · 3 comments

Comments

@ramakrishnateja
Copy link

ramakrishnateja commented Dec 12, 2017

Set up a AKS cluster
and check if everything looks fine
kubectl cluster-info

image

Now try to create a simple pod

kubectl run kubia --image=luksa/kubia --port=8080 --generator=run/v1

now try checking if the pod is created by running kubectl get pods
image

Pod is running.

now if we try to run kubectl logs it throws and exception after timing out.
image

Same issue when trying to run kubectl exec -it sh on a pod. but describe works just fine. I am seeing the issue only for the past few days and it was working previously.

@debben
Copy link

debben commented Dec 13, 2017

What is the status of the pods running in kube-system? I experienced the same issue while trying to debug #56. Once the kube-svc-redirect pod started working, I was able to get logs again.

@ramakrishnateja
Copy link
Author

Hi @debben I set up a new cluster today and tried running the same steps and I am able to access the logs. If i face the same issue again I would try to check the status of the pods running in kube-system namespace and see if kube-svc-redirect pod is running or having an issue. This is the status of the pods currently and I don't see the issue any more

image

@gonarys
Copy link

gonarys commented Aug 23, 2018

I had this problem and it turned out that I had a resource that used the subnet dedicated to AKS. you have to check this and if so, remove the resource.

@ghost ghost locked as resolved and limited conversation to collaborators Aug 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants