-
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
User "system:serviceaccount:kube-system:vpa-recommender" cannot patch resource "verticalpodautoscalers" in API group "autoscaling.k8s.io" #5982
Comments
Caused by: #5911 I ran into the same issue and had to patch the
|
I think it is a bug |
cc @jbartosik |
@pmona @iNoahNothing That's interesting! VPA release v0.14.0 shouldn't contain the change adding the Could you help me understand how you're installing VPA (helm chart, custom yaml, yaml file from the VPA repo, i.e. This will become relevant for the v0.15.0 release and is supposed to be covered in the release notes with #5921 EDIT:
This uses the TL;DR: In order to install a certain VPA version from the repo, you have to check out the corresponding tag first ( |
To install I did the following: I did not checkout any specific branch.
|
Yeah, thanks for the details! I think I figured this out, see my EDIT in the comment above: You may be using BUT: We saw earlier that a mistake happened when tagging vpa 0.14.0: the |
Ran: ./hack/vpa-down.sh All is working as expected now. |
Great to hear things are running well now for you! To re-iterate: you are currently running image version |
@voelzmo Yep! I came to that realization last night. Curious that building VPA from
|
@iNoahNothing In theory, what you're doing looks great! However, VPA doesn't use multi-stage builds in its Dockerfiles yet, so with that command you'll just re-package the existing |
Looks like this is resolved, thanks @voelzmo for handling this. Please reopen if more help is needed here. |
VPA version 0.14
Kubernetes 1.27.2
I followed the deployment method found in the README.md
Metrics server was already running on my cluster.
checking for errors in the pods, I find this in the vpa-recommender pod:
I have not been able to find any posts with this issue. Can anyone tell me what needs to be done to resolve this so VPA can provide recommendations?
The text was updated successfully, but these errors were encountered: