Skip to content

Commit 098f495

Browse files
authored
Merge pull request #91896 from mburke5678/nodes-vpa-params-fix
VPA updateMode values show lower cased options which won't work in cluster
2 parents 5aab4e8 + 2d82cfd commit 098f495

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

modules/nodes-pods-vertical-autoscaler-configuring.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ spec:
4747
<1> Specify the type of workload object you want this VPA to manage: `Deployment`, `StatefulSet`, `Job`, `DaemonSet`, `ReplicaSet`, or `ReplicationController`.
4848
<2> Specify the name of an existing workload object you want this VPA to manage.
4949
<3> Specify the VPA mode:
50-
* `auto` to automatically apply the recommended resources on pods associated with the controller. The VPA terminates existing pods and creates new pods with the recommended resource limits and requests.
51-
* `recreate` to automatically apply the recommended resources on pods associated with the workload object. The VPA terminates existing pods and creates new pods with the recommended resource limits and requests. The `recreate` mode should be used rarely, only if you need to ensure that the pods are restarted whenever the resource request changes.
52-
* `initial` to automatically apply the recommended resources when pods associated with the workload object are created. The VPA does not update the pods as it learns new resource recommendations.
53-
* `off` to only generate resource recommendations for the pods associated with the workload object. The VPA does not update the pods as it learns new resource recommendations and does not apply the recommendations to new pods.
50+
* `Auto` to automatically apply the recommended resources on pods associated with the controller. The VPA terminates existing pods and creates new pods with the recommended resource limits and requests.
51+
* `Recreate` to automatically apply the recommended resources on pods associated with the workload object. The VPA terminates existing pods and creates new pods with the recommended resource limits and requests. The `Recreate` mode should be used rarely, only if you need to ensure that the pods are restarted whenever the resource request changes.
52+
* `Initial` to automatically apply the recommended resources when pods associated with the workload object are created. The VPA does not update the pods as it learns new resource recommendations.
53+
* `Off` to only generate resource recommendations for the pods associated with the workload object. The VPA does not update the pods as it learns new resource recommendations and does not apply the recommendations to new pods.
5454
<4> Optional. Specify the containers you want to opt-out and set the mode to `Off`.
5555
<5> Optional. Specify an alternative recommender.
5656

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ You use the VPA CR to associate a workload object and specify which mode the VPA
1212

1313
* The `Auto` and `Recreate` modes automatically apply the VPA CPU and memory recommendations throughout the pod lifetime. The VPA deletes any pods in the project that are out of alignment with its recommendations. When redeployed by the workload object, the VPA updates the new pods with its recommendations.
1414
* The `Initial` mode automatically applies VPA recommendations only at pod creation.
15-
* The `Off` mode only provides recommended resource limits and requests, allowing you to manually apply the recommendations. The `off` mode does not update pods.
15+
* The `Off` mode only provides recommended resource limits and requests, allowing you to manually apply the recommendations. The `Off` mode does not update pods.
1616
1717
You can also use the CR to opt-out certain containers from VPA evaluation and updates.
1818

@@ -29,7 +29,7 @@ resources:
2929
memory: 100Mi
3030
----
3131

32-
After creating a VPA that is set to `auto`, the VPA learns the resource usage and deletes the pod. When redeployed, the pod uses the new resource limits and requests:
32+
After creating a VPA that is set to `Auto`, the VPA learns the resource usage and deletes the pod. When redeployed, the pod uses the new resource limits and requests:
3333

3434
[source,yaml]
3535
----
@@ -200,7 +200,7 @@ To obtain the most accurate recommendations from the VPA, wait at least 8 days f
200200
[id="nodes-pods-vertical-autoscaler-using-manual_{context}"]
201201
== Manually applying VPA recommendations
202202

203-
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`.
203+
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`.
204204

205205
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.
206206

@@ -266,7 +266,7 @@ spec:
266266
----
267267
<1> The type of workload object you want this VPA CR to manage.
268268
<2> The name of the workload object you want this VPA CR to manage.
269-
<3> Set the mode to `Auto`, `Recreate`, or `Off`. The `Recreate` mode should be used rarely, only if you need to ensure that the pods are restarted whenever the resource request changes.
269+
<3> Set the mode to `Auto`, `Recreate`, `Initial`, or `Off`. The `Recreate` mode should be used rarely, only if you need to ensure that the pods are restarted whenever the resource request changes.
270270
<4> Specify the containers you want to opt-out and set `mode` to `Off`.
271271

272272
For example, a pod has two containers, the same resource requests and limits:

0 commit comments

Comments
 (0)