Skip to content

VPA: Recommender Configuration for containerPolicies #9090

@jklaw90

Description

@jklaw90

Which component are you using?:

/area vertical-pod-autoscaler

Is your feature request designed to solve a problem? If so describe the problem this feature should solve.:
Right now i'd like different recommenders for memory vs cpu which causes us to need multiple CRs.

Describe the solution you'd like.:

spec.recommenders is a list so it should support multiple recommenders but we need to be able to specify them on our container policies like so

spec:
  resourcePolicy:
    containerPolicies:
    - containerName: '*'
      controlledResources:
      - cpu
      recommender: recommender1
    - containerName: 'sidecarxyz'
      controlledResources:
      - memory
      recommender: recommender2
  recommenders:
    - name: recommender1
    - name: recommender2

Describe any alternative solutions you've considered.:

Add an additional VPA cr. For us this would cause the need for a 3rd VPA for a resource.

Additional context.:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions