You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/nodes-pods-vertical-autoscaler-using-about.adoc
+10-4Lines changed: 10 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -94,7 +94,8 @@ The output shows the recommended resources, `target`, the minimum recommended re
94
94
95
95
The VPA uses the `lowerBound` and `upperBound` values to determine if a pod needs to be updated. If a pod has resource requests below the `lowerBound` values or above the `upperBound` values, the VPA terminates and recreates the pod with the `target` values.
To use the VPA to automatically update pods, create a VPA CR for a specific workload object with `updateMode` set to `Auto` or `Recreate`.
99
100
100
101
When the pods are created for the workload object, the VPA constantly monitors the containers to analyze their CPU and memory needs. The VPA deletes and redeploys pods with new container resource limits and requests to meet those needs, honoring any Pod Disruption Budget set for your applications. The recommendations are added to the `status` field of the VPA CR for reference.
@@ -125,7 +126,8 @@ spec:
125
126
There must be operating pods in the project before the VPA can determine recommended resources and apply the recommendations to new pods.
126
127
====
127
128
128
-
Automatically applying VPA recommendations on pod creation::
== Automatically applying VPA recommendations on pod creation
129
131
To use the VPA to apply the recommended resources only when a pod is first deployed, create a VPA CR for a specific workload object with `updateMode` set to `Initial`.
130
132
131
133
When the pods are created for that workload object, the VPA analyzes the CPU and memory needs of the containers and assigns the recommended container resource limits and requests. The VPA does not update the pods as it learns new resource recommendations.
@@ -154,7 +156,9 @@ spec:
154
156
There must be operating pods in the project before a VPA can determine recommended resources and apply the recommendations to new pods.
To use the VPA to only determine the recommended CPU and memory values, create a VPA CR for a specific workload object with `updateMode` set to `off`.
159
163
160
164
When the pods are created for that workload object, the VPA analyzes the CPU and memory needs of the containers and records those recommendations in the `status` field of the VPA CR. The VPA does not update the pods as it determines new resource recommendations.
@@ -192,7 +196,9 @@ With the recommendations, you can edit the workload object to add CPU and memory
192
196
There must be operating pods in the project before a VPA can determine recommended resources.
193
197
====
194
198
195
-
Exempting containers from applying VPA recommendations::
== Exempting containers from applying VPA recommendations
201
+
196
202
If your workload object has multiple containers and you do not want the VPA to evaluate and act on all of the containers, create a VPA CR for a specific workload object and add a `resourcePolicy` to opt-out specific containers.
197
203
198
204
When the VPA updates the pods with recommended resources, any containers with a `resourcePolicy` are not updated and the VPA does not present recommendations for those containers in the pod.
0 commit comments