-
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
HPA does not work; HPA current always shows <waiting> #1095
Comments
We'll try to repro this. |
HPA works for me. Though it took a bit before the pods scaled out, docs day 30 seconds but it seemed like it was more like 1.5 to 2.5 minutes maybe more(though watching things for more than 15 seconds starts to feel like a really long time)
My Setup: |
I have tested hpa and it seems that it does work properly but takes some time for it to come up. I even saw the same error that you did (which is probably worth looking into) but it still seemed to work:
|
In my case, the nodes were never able to get current cpu... |
For custom metrics to work for HPA, minikube has to be started with the kubelet.EnableCustomMetrics flag: |
I tried with |
How are you defining the It seems there are some caveats regarding the host network namespace. |
@aaron-prindle I'm a bit confused😕 - I'm just trying to get HPA running on minikube with the default CPU utilization metric. I'm not using any custom metric for HPA scaling (though thanks for the link - that'll be the next step after I get basic HPA going). |
Just to make sure, do you have a CPU request on your pod? If not HPA is going to stay in |
Ah... that was it... I didn't have resource limits in there :(... Once I added them in, HPA works. Thanks for the pointer! |
I have a CPU request set for my pod and i am facing this issue.
|
This is really not working for me on OSX with xhyve:
gives:
It never gets the CPU. I tried deploying https://github.com/kubernetes/heapster/tree/master/deploy/kube-config/standalone but that gives the error:
|
From testing step below. I'm still facing this problem on OSX with virtualbox. Please kindly suggestion if i wrong or miss some step. Environment webtest_deploy_hpa.yml spec:
|
Is this a BUG REPORT or FEATURE REQUEST? (choose one):
BUG REPORT
Minikube version (use
minikube version
): 0.16.0Environment:
cat ~/.minikube/machines/minikube/config.json | grep DriverName
): Virtualboxcat ~/.minikube/machines/minikube/config.json | grep ISO
): minikube-v1.0.2.isoWhat happened: Wanted to try out HPA on minikube.
kubectl get hpa
What you expected to happen:
Should be able to get metrics and scale the service
How to reproduce it (as minimally and precisely as possible):
Anything else do we need to know:
No.
The text was updated successfully, but these errors were encountered: