Skip to content

Commit a4f183d

Browse files
authored
Merge pull request #47274 from jeana-redhat/GH47273
[GH47273]: Fix utilizationThreshold example and clarify parameter requirements
2 parents d0ba146 + 3a8cc7a commit a4f183d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/cluster-autoscaler-cr.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ spec:
3939
delayAfterDelete: 5m <13>
4040
delayAfterFailure: 30s <14>
4141
unneededTime: 5m <15>
42-
utilizationThreshold: 0.4 <16>
42+
utilizationThreshold: "0.4" <16>
4343
----
4444
<1> Specify the priority that a pod must exceed to cause the cluster autoscaler to deploy additional nodes. Enter a 32-bit integer value. The `podPriorityThreshold` value is compared to the value of the `PriorityClass` that you assign to each pod.
4545
<2> Specify the maximum number of nodes to deploy. This value is the total number of machines that are deployed in your cluster, not just the ones that the autoscaler controls. Ensure that this value is large enough to account for all of your control plane and compute machines and the total number of replicas that you specify in your `MachineAutoscaler` resources.
@@ -56,7 +56,7 @@ spec:
5656
<13> Optional: Specify the period to wait before deleting a node after a node has recently been _deleted_. If you do not specify a value, the default value of `0s` is used.
5757
<14> Optional: Specify the period to wait before deleting a node after a scale down failure occurred. If you do not specify a value, the default value of `3m` is used.
5858
<15> Optional: Specify the period before an unnecessary node is eligible for deletion. If you do not specify a value, the default value of `10m` is used.
59-
<16> Optional: Specify the _node utilization level_ below which an unnecessary node is eligible for deletion. The node utilization level is the sum of the requested resources divided by the allocated resources for the node, and must be a value greater than `0` but less than `1`. If you do not specify a value, the cluster autoscaler uses a default value of `0.5`, which corresponds to 50% utilization.
59+
<16> Optional: Specify the _node utilization level_ below which an unnecessary node is eligible for deletion. The node utilization level is the sum of the requested resources divided by the allocated resources for the node, and must be a value greater than `"0"` but less than `"1"`. If you do not specify a value, the cluster autoscaler uses a default value of `"0.5"`, which corresponds to 50% utilization. This value must be expressed as a string.
6060
// Might be able to add a formula to show this visually, but need to look into asciidoc math formatting and what our tooling supports.
6161

6262
[NOTE]

0 commit comments

Comments
 (0)