Skip to content

autoscaling.v1beta2.verticalPodAutoscalerContainerResourcePolicy

"An array of these is used as the input to verticalPodAutoscaler.spec.resourcePolicy.withContainerPolicies()."

Index

Fields

fn withContainerName

withContainerName(name)

The name of the container that the policy applies to. If not specified, the policy serves as the default policy.

fn withControlledResources

withControlledResources(resources)

Specifies the type of recommendations that will be computed (and possibly applied) by VPA. If not specified, the default of [ResourceCPU, ResourceMemory] will be used.

fn withControlledResourcesMixin

withControlledResourcesMixin(resources)

withControlledResourcesMixin is like withControlledResources, but appends to the existing list

fn withControlledValues

withControlledValues(values)

Which resource values should be controlled by VPA. Valid values are "RequestsAndLimits" and "RequestsOnly". The default is "RequestsAndLimits".

fn withMaxAllowed

withMaxAllowed(maxAllowed)

Specifies the maximum amount of resources that will be recommended for the container. The default is no maximum.

fn withMaxAllowedMixin

withMaxAllowedMixin(maxAllowed)

Like withMaxAllowed but merges with the existing object.

fn withMinAllowed

withMinAllowed(maxAllowed)

Specifies the minimal amount of resources that will be recommended for the container. The default is no minimum.

fn withMinAllowedMixin

withMinAllowedMixin(minAllowed)

Like withMinAllowed but merges with the existing object.

fn withMode

withMode(minAllowed)

Whether autoscaler is enabled for the container. Valid values are "Off" and "Auto". The default is "Auto".