Created
March 31, 2023 11:44
-
-
Save vikas-bisht16/f75d4a65f96ea2525dcfe4ac9c581870 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: actions.summerwind.dev/v1alpha1 | |
kind: HorizontalRunnerAutoscaler | |
metadata: | |
name: horizontal-runner-autoscaler-dev # change name accordingly | |
namespace: actions-runner-system | |
spec: | |
scaleTargetRef: | |
kind: RunnerDeployment | |
name: k8s-action-runner # Name of RunnerDeployment | |
minReplicas: 1 | |
maxReplicas: 5 | |
metrics: | |
- type: PercentageRunnersBusy | |
scaleUpThreshold: '0.75' # The percentage of busy runners at which the number of desired runners are re-evaluated to scale up | |
scaleDownThreshold: '0.3' # The percentage of busy runners at which the number of desired runners are re-evaluated to scale down | |
scaleUpFactor: '1.4' # The scale up multiplier factor applied to desired count | |
scaleDownFactor: '0.7' # The scale down multiplier factor applied to desired count |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment