Skip to content

Instantly share code, notes, and snippets.

@vikas-bisht16
Created March 31, 2023 11:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vikas-bisht16/f75d4a65f96ea2525dcfe4ac9c581870 to your computer and use it in GitHub Desktop.
Save vikas-bisht16/f75d4a65f96ea2525dcfe4ac9c581870 to your computer and use it in GitHub Desktop.
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