Skip to content
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

[vertical-pod-autoscaler] Add AllowedResourceFilter to restrict which recommendations can be applied #102

Conversation

domenicbozzuto
Copy link

Adds a new recommendation post-processor that restricts which recommended resources can actually be applied to a pod. This is useful for preventing new/experimental recommendations from immediately being applied, as well as preventing intermediate values without a backing extended resource from being applied.

It's implemented as a RecommendationProcessor; I'm using the existing (but previously unused) SequentialProcessor to hook in the Capping processor (which was previously the only RecommendationProcessor used) and this new AllowedResourceFilter.

It's gated by a command line option --allowed-resources in both the updater and admission controller. By default, this should be no change from the current behavior where only cpu/memory are applied.

@domenicbozzuto domenicbozzuto force-pushed the dom.bozzuto/allowed-resource-recommendation-processor branch from 7597a3c to 8e98976 Compare February 23, 2024 19:13
@domenicbozzuto domenicbozzuto changed the title Add AllowedResourceFilter to restrict which recommendations can be applied [vertical-pod-autoscaler] Add AllowedResourceFilter to restrict which recommendations can be applied Feb 26, 2024
Copy link

@dbenque dbenque left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, any plan to push that upstream? If not it is going to be hard to maintain the patch. We are already one version late compare to upstream.

@domenicbozzuto domenicbozzuto force-pushed the dom.bozzuto/allowed-resource-recommendation-processor branch from 8e98976 to 9c3dab3 Compare February 28, 2024 14:13
@domenicbozzuto domenicbozzuto merged commit ad3ec34 into datadog-master-vpa-0.13.0 Mar 1, 2024
6 checks passed
@domenicbozzuto domenicbozzuto deleted the dom.bozzuto/allowed-resource-recommendation-processor branch March 1, 2024 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants