Values
Values are configuration values which decide scaling parameters. They can be set at any scope and therefore can be set via their respective environment variables, cli arguments, namespace annotations and workload annotations
The default values shown below are only set on the default scope.
Order
Some of the values have a specific order in which they are evaluated. This means that some values take precedence over others.
Exclusion
Exclusion contains all values which exclude the workload (e.g. Exclude, Exclude Until, Grace Period).
If any of these values exclude the workload, it will not be scaled.
Scaling
Scaling includes all values which influence the state of Scaling the workload should be in (e.g. Force Downtime, Force Uptime, Downscale Period, Downtime, Upscale Period, Uptime).
If Force Downtime or Force Uptime is true/matching during scaling their respective scaling will be used. Otherwise the Downscale Period, Downtime, Upscale Period and Uptime values are evaluated.
Currently if Downscale Period and Upscale Period is set, and both match the same time the workload will ignore scaling. This is NOT final intended behavior and you should not rely on this. This will likely change in the future to be seen as an incompatibility.
Downscale Period
- Type: Timespans
- Default: []
- Within these periods the workload will be scaled down. Outside of the periods, scaling will be ignored/overwritten by Upscale Period.
- Can be paired with upscale period
- Incompatible with Downtime and Uptime
- Grouped with downtime, uptime and upscale period
Downtime
- Type: Timespans
- Default: []
- Within these periods the workload will be scaled down. Outside of the periods the workload will be scaled up.
- Incompatible with downscale period, upscale period and Uptime
- Grouped with downscale period, uptime and upscale period
Upscale Period
- Type: Timespans
- Default: []
- Within these periods the workload will be scaled up. Outside of the periods, scaling will be ignored/overwritten by Downscale Period.
- Can be paired with downscale period
- Incompatible with Downtime and Uptime
- Grouped with downscale period, uptime and Downtime
Uptime
- Type: Timespans
- Default: []
- Within these periods the workload will be scaled up. Outside of the periods the workload will be scaled down.
- Incompatible with downscale period, upscale period and Downtime
- Grouped with downscale period, upscale period and Downtime
Exclude
- Type: Timespans (this also includes true/false)
- Default: false
- Excludes the workload from being scaled. (Scaling is ignored)
Exclude Until
- Type: RFC3339 timestamp
- Default: none
- Excludes the workload from being scaled until the set time. (Scaling is ignored)
Force Uptime
- Type: Timespans (this also includes true/false)
- Default: false
- Forces the workload into an uptime state. (Scaling up)
- Incompatible with force downtime
- Grouped with force downtime
Force Downtime
- Type: Timespans (this also includes true/false)
- Default: false
- Forces the workload into a downtime state. (Scaling down)
- Incompatible with force uptime
- Grouped with force uptime
Downscale Replicas
Grace Period
- Type: Duration
- Default: 15 minutes
- The Duration a workload has to exist for until being scaled the first time. Will check against the timestamp in the time annotation instead of the creation time when set.