Shall I have the http url link where i can refer to , for the answer given in the question.?
I need to make myself comfortable with the VPA document pages.
Probably the best thing to do is use k explain
, which gives you the most useful summaries of the attributes:
$ k explain vpa.spec.resourcePolicy.containerPolicies
GROUP: autoscaling.k8s.io
KIND: VerticalPodAutoscaler
VERSION: v1
FIELD: containerPolicies <[]Object>
DESCRIPTION:
Per-container resource policies.
ContainerResourcePolicy controls how autoscaler computes the recommended
resources for a specific container.
FIELDS:
containerName <string>
Name of the container or DefaultContainerResourcePolicy, in which
case the policy is used by the containers that don't have their own
policy specified.
controlledResources <[]string>
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.
controlledValues <string>
enum: RequestsAndLimits, RequestsOnly
Specifies which resource values should be controlled.
The default is "RequestsAndLimits".
maxAllowed <map[string]Object>
Specifies the maximum amount of resources that will be recommended
for the container. The default is no maximum.
minAllowed <map[string]Object>
Specifies the minimal amount of resources that will be recommended
for the container. The default is no minimum.
mode <string>
enum: Auto, Off
Whether autoscaler is enabled for the container. The default is "Auto".
I don’t find the docs in github as easy to navigate, and in any event, they aren’t approved – at least yet – for use during the exam anyway.