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

proxy+VPN: apiserver: timed out waiting for the condition #4942

Closed
jfrabetti opened this issue Aug 1, 2019 · 4 comments · Fixed by #5592
Closed

proxy+VPN: apiserver: timed out waiting for the condition #4942

jfrabetti opened this issue Aug 1, 2019 · 4 comments · Fixed by #5592
Labels
cause/firewall-or-proxy When firewalls or proxies seem to be interfering ev/apiserver-timeout timeout talking to the apiserver triage/duplicate Indicates an issue is a duplicate of other open issue.

Comments

@jfrabetti
Copy link

jfrabetti commented Aug 1, 2019

Hello,

I am on a Mac HighSierra 10.13.6. I am on a VPN. I set up my proxy for Docker in Docker Preferences, I can connect to my remote cluster using kubectl, I use the following commands to start minikube (I used actual proxy info):

vpn-135-210-77-42:~ jo$ export HTTP_PROXY='proxy:port'
vpn-135-210-77-42:~ jo$ export HTTPS_PROXY='proxy:port'
vpn-135-210-77-42:~ jo$ export NO_PROXY=localhost,127.0.0.1,10.96.0.0/12,192.168.99.0/24,192.168.39.0/24
vpn-135-210-77-42:~ jo$ minikube start
😄 minikube v1.2.0 on darwin (amd64)
💡 Tip: Use 'minikube start -p ' to create a new cluster, or 'minikube delete' to delete this one.
🏃 Re-using the currently running virtualbox VM for "minikube" ...
⌛ Waiting for SSH access ...
🌐 Found network options:
▪ HTTP_PROXY=http://'proxy:port'
▪ HTTPS_PROXY=https://'proxy:port'
▪ NO_PROXY=localhost,127.0.0.1,10.96.0.0/12,192.168.99.0/24,192.168.39.0/24
🐳 Configuring environment for Kubernetes v1.15.0 on Docker 18.09.6
▪ env HTTP_PROXY='proxy:port'
▪ env HTTPS_PROXY='proxy:port'
▪ env NO_PROXY=localhost,127.0.0.1,10.96.0.0/12,192.168.99.0/24,192.168.39.0/24
🔄 Relaunching Kubernetes v1.15.0 using kubeadm ...

💣 Error restarting cluster: waiting for apiserver: timed out waiting for the condition

😿 Sorry that minikube crashed. If this was unexpected, we would love to hear from you:
👉 https://github.com/kubernetes/minikube/issues/new
❌ Problems detected in "kube-addon-manager":
error: no objects passed namespace/tkuo be-system unapplych
vpn-135-210-77-42:~ jo$ minikube logs > minikube.log

Will minikube work with a VPN? Thank you for any assistance with this error!

minikube.log

@tstromberg
Copy link
Contributor

tstromberg commented Aug 1, 2019

I don’t yet have a clear way to replicate this issue. Do you mind adding some additional details? Here is additional information that would be helpful:

  • The full output of minikube logs
  • The full output of kubectl get po -A
  • What VPN software are you running?

Thank you for sharing your experience!

@tstromberg tstromberg changed the title error: no objects passed namespace/tkuo be-system unapplych proxy: apiserver: timed out waiting for the condition Aug 1, 2019
@tstromberg tstromberg added cause/firewall-or-proxy When firewalls or proxies seem to be interfering ev/apiserver-timeout timeout talking to the apiserver triage/needs-information Indicates an issue needs more information in order to work on it. labels Aug 1, 2019
@jfrabetti
Copy link
Author

jfrabetti commented Aug 2, 2019

minikube_STDIN.log
Thank you for troubleshooting this, I would like to help as much as possible in this troubleshooting effort! The full output of the minikube logs was attached in the previous post, but I started up minikube again and I am attaching the log (minikube_restart.log) and I could not run 'kubectl get po -A' ('kubectl get pods' did not make sense since no cluster) output. I am using Cisco AnyConnect VPN software. I installed minikube using Homebrew. I am using VirtualBox 6.0.

😄 minikube v1.2.0 on darwin (amd64)
💡 Tip: Use 'minikube start -p ' to create a new cluster, or 'minikube delete' to delete this one.
🔄 Restarting existing virtualbox VM for "minikube" ...
⌛ Waiting for SSH access ...
🌐 Found network options:
▪ HTTP_PROXY=http://'proxy:port'
▪ HTTPS_PROXY=http://'proxy:port'
▪ NO_PROXY=localhost,127.0.0.1,10.96.0.0/12,192.168.99.0/24,192.168.39.0/24
🐳 Configuring environment for Kubernetes v1.15.0 on Docker 18.09.6
▪ env HTTP_PROXY=http://'proxy:port'
▪ env HTTPS_PROXY=http://'proxy:port'
▪ env NO_PROXY=localhost,127.0.0.1,10.96.0.0/12,192.168.99.0/24,192.168.39.0/24
🔄 Relaunching Kubernetes v1.15.0 using kubeadm ...

💣 Error restarting cluster: waiting for apiserver: timed out waiting for the condition

😿 Sorry that minikube crashed. If this was unexpected, we would love to hear from you:
👉 https://github.com/kubernetes/minikube/issues/new
❌ Problems detected in "kube-addon-manager":
error: unable to recognize "STDIN": Get https://localhost:8443/api?timeout=32s: dial tcp 127.0.0.1:8443: connect: connection refused

I could not recreate that particular error, but it crashed again. I found a post by michaeljeffrey , opened my Cisco Route Details panel (under the VPN lock on the Statistics pop-up) and Non-Secured Routes 192.168.xx.xx/24 169.254.xx.xx/xx but when I tried the sudo route add 192.168.xx.xx/24 -iface vboxnet0 (with my info), it still crashed. Should I be using info from Cisco or the Docker subnet?

@tstromberg
Copy link
Contributor

tstromberg commented Aug 22, 2019

That's interesting. Starting up the apiserver shouldn't depend on networking, but the Cisco VPN may be preventing network traffic from accessing the minikube IP on port 8443.

We now have some documentation as far as what IP's to allow through. Please let me know if it helps:

https://minikube.sigs.k8s.io/docs/reference/networking/vpn/

If you get a chance to try again, I would be curious to see what the output of this command is:

minikube ssh "docker ps -a"

as well as:

minikube status

Thank you for your patience.

@tstromberg tstromberg changed the title proxy: apiserver: timed out waiting for the condition proxy+VPN: apiserver: timed out waiting for the condition Aug 22, 2019
@tstromberg tstromberg added the kind/support Categorizes issue or PR as a support question. label Sep 20, 2019
@tstromberg
Copy link
Contributor

Marking as dupe of #4302

@tstromberg tstromberg added triage/duplicate Indicates an issue is a duplicate of other open issue. and removed triage/needs-information Indicates an issue needs more information in order to work on it. kind/support Categorizes issue or PR as a support question. labels Sep 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cause/firewall-or-proxy When firewalls or proxies seem to be interfering ev/apiserver-timeout timeout talking to the apiserver triage/duplicate Indicates an issue is a duplicate of other open issue.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants