Skip to content

Commit

Permalink
feat: Introduce activationThreshold/minMetricValue for Kubernetes Wor…
Browse files Browse the repository at this point in the history
…kload Scaler

Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
  • Loading branch information
JorTurFer committed Jul 20, 2022
1 parent 69c5ec2 commit 3e0f7e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions content/docs/2.8/scalers/kubernetes-workload.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@ triggers:
metadata:
podSelector: 'app=backend'
value: '0.5'
activationValue: '3.1'
```
**Parameter list:**
- `podSelector` - [Label selector](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors) that will be used to get the pod count. It supports multiple selectors split by a comma character (`,`). It also supports [set-based requirements](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#set-based-requirement) and a mix of them.
- `value` - Target relation between the scaled workload and the amount of pods which matches the selector. It will be calculated following this formula: `relation = (pods which match selector) / (scaled workload pods)`. (This value can be a float)
- `activationValue` - Target value for activating the scaler. Learn more about activation [here](./../concepts/scaling-deployments.md#activating-and-scaling-thresholds).(Default: `0`, Optional, This value can be a float)

> 💡 **Note:** The search scope is limited to the namespace where the `ScaledObject` is deployed.

Expand Down

0 comments on commit 3e0f7e8

Please sign in to comment.