Skip to content

Commit 4295cab

Browse files
authored
Merge pull request #31276 from mburke5678/vpa-fix-formatting
Fixed formatting in a VPA module
2 parents d8ccac5 + b929a61 commit 4295cab

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

modules/nodes-pods-vertical-autoscaler-using-about.adoc

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ The output shows the recommended resources, `target`, the minimum recommended re
9494

9595
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.
9696

97-
Automatically applying VPA recommendations::
97+
[id="nodes-pods-vertical-autoscaler-using-auto_{context}"]
98+
== Automatically applying VPA recommendations
9899
To use the VPA to automatically update pods, create a VPA CR for a specific workload object with `updateMode` set to `Auto` or `Recreate`.
99100

100101
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:
125126
There must be operating pods in the project before the VPA can determine recommended resources and apply the recommendations to new pods.
126127
====
127128

128-
Automatically applying VPA recommendations on pod creation::
129+
[id="nodes-pods-vertical-autoscaler-using-pod_{context}"]
130+
== Automatically applying VPA recommendations on pod creation
129131
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`.
130132

131133
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:
154156
There must be operating pods in the project before a VPA can determine recommended resources and apply the recommendations to new pods.
155157
====
156158

157-
Manually applying VPA recommendations::
159+
[id="nodes-pods-vertical-autoscaler-using-manual_{context}"]
160+
== Manually applying VPA recommendations
161+
158162
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`.
159163

160164
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
192196
There must be operating pods in the project before a VPA can determine recommended resources.
193197
====
194198

195-
Exempting containers from applying VPA recommendations::
199+
[id="nodes-pods-vertical-autoscaler-using-exempt_{context}"]
200+
== Exempting containers from applying VPA recommendations
201+
196202
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.
197203

198204
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

Comments
 (0)