Skip to content

Commit e8b925e

Browse files
committed
Update VPA version for startupboost feature
1 parent cd061df commit e8b925e

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

vertical-pod-autoscaler/docs/features.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ VPA provides metrics to track in-place update operations:
158158
## CPU Startup Boost
159159

160160
> [!WARNING]
161-
> FEATURE STATE: VPA v1.5.0 [alpha]
161+
> FEATURE STATE: VPA v1.6.0 [alpha]
162162

163163
The CPU Startup Boost feature allows VPA to temporarily increase CPU requests and limits for containers during pod startup. This can help workloads that have high CPU demands during their initialization phase, such as Java applications, to start faster. Once the pod is considered `Ready` and an optional duration has passed, VPA scales the CPU resources back down to their normal levels using an in-place resize.
164164

@@ -184,7 +184,8 @@ spec:
184184
updateMode: "Recreate"
185185
startupBoost:
186186
cpu:
187-
value: "3"
187+
type: "Factor"
188+
factor: 3
188189
duration: 10s
189190
```
190191

@@ -197,7 +198,7 @@ spec:
197198
### Requirements
198199

199200
* Kubernetes 1.33+ with the `InPlacePodVerticalScaling` feature gate enabled.
200-
* VPA version 1.5.0+ with the `CPUStartupBoost` feature gate enabled.
201+
* VPA version 1.6.0+ with the `CPUStartupBoost` feature gate enabled.
201202

202203
### Configuration
203204

@@ -207,7 +208,8 @@ Enable the feature by setting the `CPUStartupBoost` feature gate in the VPA admi
207208
--feature-gates=CPUStartupBoost=true
208209
```
209210

210-
The `startupBoost` field has the following sub-fields:
211-
* `cpu.type`: The type of boost. Can be `Factor` (default) to multiply the CPU, or `Quantity` to set a specific CPU value.
212-
* `cpu.value`: The magnitude of the boost. A multiplier (e.g., "2") for `Factor` type, or a resource quantity (e.g., "500m") for `Quantity` type.
213-
* `cpu.duration`: (Optional) How long to keep the boost active *after* the pod becomes `Ready`. Defaults to `0s`.
211+
The `startupBoost` field contains a `cpu` field with the following sub-fields:
212+
* `type`: (Required) The type of boost. Can be `Factor` to multiply the CPU, or `Quantity` to add a specific CPU value.
213+
* `factor`: (Optional) The multiplier to apply if `type` is `Factor` (e.g., 2 for 2x CPU). Required if `type` is `Factor`.
214+
* `quantity`: (Optional) The amount of CPU to add if `type` is `Quantity` (e.g., "500m"). Required if `type` is `Quantity`.
215+
* `duration`: (Optional) How long to keep the boost active *after* the pod becomes `Ready`. Defaults to `0s`.

vertical-pod-autoscaler/pkg/features/features.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const (
4040
// In each feature gate description, you must specify "components".
4141
// The feature must be enabled by the --feature-gates argument on each listed component.
4242

43-
// alpha: v1.5.0
43+
// alpha: v1.6.0
4444
// components: admission-controller, updater
4545

4646
// CPUStartupBoost enables the CPU startup boost feature.

vertical-pod-autoscaler/pkg/features/versioned_features.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import (
2828
// Entries are alphabetized.
2929
var defaultVersionedFeatureGates = map[featuregate.Feature]featuregate.VersionedSpecs{
3030
CPUStartupBoost: {
31-
{Version: version.MustParse("1.5"), Default: false, PreRelease: featuregate.Alpha},
31+
{Version: version.MustParse("1.6"), Default: false, PreRelease: featuregate.Alpha},
3232
},
3333
InPlaceOrRecreate: {
3434
{Version: version.MustParse("1.4"), Default: false, PreRelease: featuregate.Alpha},

0 commit comments

Comments
 (0)