-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Description
Which component are you using?:
Vertical Pod Autoscaler
Is your feature request designed to solve a problem? If so describe the problem this feature should solve.:
There are scenarios where we inject sidecar containers into many pods. There is not a one-size-fits-all resource allocation for these pods, so I really want to be able to start with a generic value, and then use a VPA to tune these to a more appropriate value for the workload. Currently, injected containers seem to be entirely ignored, and there is no way to explicit ask for them to be configured.
Describe the solution you'd like.:
I would like to be able to configure either the VPA pods or the VPA resources in a way that allows us to include these injected containers in the VPA scaling process. I think the best option may be in the VPA pods. Since container injection is generally a cluster-admin responsibility, it makes sense that we would want to introduce this configuration at a level maintained by cluster admins.
I can imagine a new flag being introduced for the recommender like --injected-sidecar-allowlist
which enumerates the container names which we want to support VPA scaling for.
Describe any alternative solutions you've considered.:
We can augment the logic of our container injections to try to set more appropriate values for their resources, but this is very hard! After all, this is the point of the VPA existing in the first place.