You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can't speak for what that lease is being used for in GKE, but I can only assume that changing that lease is difficult or impossible in GKE.
Given that the lease(s) in VPA are only used for VPA components, and running multiple recommenders and updaters for a brief period isn't that worst thing in the world, my vote is that we change the default lease name in the VPA.
Any VPA configured with the lease enabled will only be running multiple pods for a short period of time, which should be fine.
It's obviously not an amazing path forward, but may be worth doing.
I'm curios what @voelzmo and @kwiesmueller think, as they may be the ones approving that controversial PR.
my vote is that we change the default lease name in the VPA.
If we do go this path, i suggest we also make PRs into 3rd party Helm charts to ensure they support the new default name. Some of them hardcode the lease name:
Which component are you using?:
vertical-pod-autoscaler
What version of the component are you using?:
Component version:
vertical-pod-autoscaler-1.2.0
+Leader election functionality was added in #6985 and is turned off by default
What k8s version are you using (
kubectl version
)?:Any version 1.27+
What environment is this in?:
GKE
What did you expect to happen?:
The self-deployed VPA recommender and the GKE implementation of HPA to continue working.
What happened instead?:
Both the self-deployed VPA recommender and the GKE version use a lease called
vpa-recommender
inkube-system
.If you deploy your own VPA recommender, it might "steal" the lease and prevent the GKE implementation of HPA.
How to reproduce it (as minimally and precisely as possible):
vpa-up.sh
). Make sure leader election is enabled (leader-elect=true
).Anything else?
This is due to the unfortunate naming collision between GKE's system controller (also called
vpa-recommender
and the one provided here)The text was updated successfully, but these errors were encountered: