-
Notifications
You must be signed in to change notification settings - Fork 4k
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
VPA continuously restarting PODs for hamster app #2789
Comments
The log from recommender seems to indicate unhealthy (overloaded?) API server.
As for continuously updating the pods, this happens if admission controller is not working or not being called by API server. Is this a hosted Kubernetes or do you have access to the master logs? |
But as far as I understand all other requests to API are fine:
I see just one line related to hamster in logs:
It's Amazon EKS, I can see many messages like below in logs in CloudWatch for kube-apiserver:
From POD inside Kube I can send request to this service
|
Ah right, the failed VPA object update is due to API server being unable to call webhook. The setup seems fine from my point of view, so there is something EKS specific in play, which I am not familiar with unfortunately. #1547 seems similar, but I understand from your report that the admission controller is already listening on port 443? |
yes, it's listening and available via service:
I tried to remove (vpa-down.sh) and install it again with fix from #1547:
Сhecked all VPA resources - everything looks fine, service is available. But it's not working with example application still - again hamster PODs restarts and same messages in VPA logs and AWS logs |
Then I am afraid I am unable to help, this seems to be a problem with setting up a webhook on EKS, not with the VPA itself. Perhaps you can try asking on a forum with some AWS experts? |
I'm closing this since seems we can't do anything here, but please feel free to reopen if there is something VPA-specific that we can help with. |
@bskiba: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
I'll add our solution here if someone will have the same issue
@bskiba thanks for help! |
I'm glad you managed to solve it! |
@GreyOBox, That worked for me too. Thanks for leaving the solution here! |
Kubernetes:
VPA: Fresh master (0.6.3)
Deployed to Kubernetes as described in docs, all VPA pods are running, service is ok, no errors in logs.
Deployed example from docs
kubectl create -f examples/hamster.yaml
First few hours
kubectl describe vpa
shows empty Status and Events.In
vpa-recommender
logs I see only errors like:No errors in other VPA logs.
After few hours
kubectl describe vpa
shows following:and VPA starts to restart hamster pods continuously (every few minutes - restart):
Checked FAQ - vpa restarts my pods too, everything looks fine.
Enabled debug logs:
but VPA service is available. All other curl lines in log shows HTTP 200. Like that:
Also:
No idea why there's
hamster-vpa-hamster
instead ofhamster-vpa
.In
vpa-updater
logs repeated lines like:(POD name changes every time)
Nothing interesting in
vpa-admission-controller
logs.And VPA doesn't update resources for hamster PODs:
The text was updated successfully, but these errors were encountered: