-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
kubectl & dashboard under high load: Unable to connect to the server: net/http: TLS handshake timeout #2946
Comments
It sounds like your Kubernetes environment is running out of resources, though I can't tell if it's CPU or memory from this description. Can you run the following for me? minikube ssh "vmstat 5 12" |
I had the same thing happen - and you can probably reproduce my example fairly easily. I freshly installed Kubernetes on my Mac:
Exact commands below:
My setup (can make a separate issues if wanted but imagine the solution would be the same): I used the Spinnaker helm formula as you see above. It installed correctly, but couldn't start up all the pods successfully because of resource issues. When running (Defaults were 2GB RAM and 1 CPU, I believe)
Then I restarted minikube with 10GB + 6 CPUs. Changed the settings in VirtualBox, then ran
I had no issue once I gave it more resources - but perhaps there should be a warning about this on the releases page which gets linked to by the Kubernetes docs |
I can see loads of swapping going on. I'm curious if resolving #3012 would make this less problematic. Regardless, we should be able to get the apiserver setup in such a way that it still answers kubectl requests properly. I'm surprised it doesn't by default. |
I think that this may have been addressed by #3671 - which shipped with minikube v0.34.1. Do you mind trying it and reporting back your results? If it still fails, please include the output of |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
I believe this issue was resolved in the v1.1.0 release. Please try upgrading to the latest release of minikube, and if the same issue occurs, please re-open this bug. Thank you opening this bug report, and for your patience! |
BUG REPORT
Please provide the following details:
Environment:
Minikube version (use
minikube version
): v0.28.0cat ~/.minikube/machines/minikube/config.json | grep DriverName
): hyperkitcat ~/.minikube/machines/minikube/config.json | grep -i ISO
orminikube ssh cat /etc/VERSION
): minikube-v0.28.0.isoThe above can be generated in one go with the following commands (can be copied and pasted directly into your terminal):
What happened:
I have 18 services in my stack, pretty much all of them tomcat:apline + my WAR... works without any problems when I run 12 of them... but if I try to run all 18, after a very short while,
kubectl
stop responding... gettingUnable to connect to the server: net/http: TLS handshake timeout
...minikube dashboard
does not work either... gettingand
hyperkit
process CPU consumption goes through the roofmy minikube cluster was created:
and I run it on MacBook Pro (Retina, 15-inch, Mid 2015), 2.8 GHz Intel Core i7, 16 GB 1600 MHz DDR3
What you expected to happen:
Minikube cluster keep going no matter how many pods I have deployed (within limits of memory and cpu)
How to reproduce it (as minimally and precisely as possible):
I have not tried it yet... but I am pretty sure that it does not really matter what kind of pods you trying to deploy (in my case, all pods effectively doing nothing at the point when problem occur)... so trying to deploy 20 generic pods ( for example with tomcat:alpine and some generic WAR) most likely will do the trick
Output of
minikube logs
(if applicable):Anything else do we need to know:
This is extremely annoying... I know for the fact that I can run the same stack using docker-composer without any problems...
Any advice would be highly appreciated.
Goes without saying, I would be more than happy and willing to provide any additional information you may require... I really would like to see our app moving to k8s... but to convince the boss, I need to have it running in minikube first.
The text was updated successfully, but these errors were encountered: