@@ -36,7 +36,6 @@ This feature is particularly useful in environments where services are billed pr
3636
3737* Allow users to specify a ` memoryPerCPU ` ratio in ` VerticalPodAutoscaler ` objects.
3838* Ensure VPA recommendations respect the ratio across Target, LowerBound, UpperBound, and UncappedTarget.
39- * Provide a feature gate to enable/disable the feature cluster-wide.
4039
4140### Non-Goals
4241
@@ -88,7 +87,6 @@ memory_bytes = cpu_cores * memoryPerCPU
8887* Ratio enforcement is strict:
8988 * If the memory recommendation would exceed ` cpu * memoryPerCPU ` , then ** CPU is increased** to satisfy the ratio.
9089 * If the CPU recommendation would exceed ` memory / memoryPerCPU ` , then ** memory is increased** to satisfy the ratio.
91- * If ratio cannot be applied (e.g., missing CPU), fallback to standard recommendations.
9290* With the ` MemoryPerCPURatio ` feature gate disabled, the ` memoryPerCPU ` field is ignored and recommendations fall back to standard VPA behavior.
9391
9492> [ !IMPORTANT]
@@ -143,6 +141,7 @@ The `memoryPerCPU` feature requires VPA version 1.5.0 or higher. The feature is
143141
144142* ` memoryPerCPU ` must be > 0.
145143* Value must be a valid ` resource.Quantity ` (e.g., ` 512Mi ` , ` 4Gi ` ).
144+ * If ` memoryPerCPU ` is set, controlledResources must include both ` cpu ` and ` memory ` .
146145* Admission ensures that memoryPerCPU is reachable within the VPA bounds.
147146 * Reject the object if ` minAllowed.cpu ` × ` memoryPerCPU ` > ` maxAllowed.memory ` .
148147 * Reject the object if ` maxAllowed.cpu ` × ` memoryPerCPU ` < ` minAllowed.memory ` .
0 commit comments