diff --git a/openshift/manifests/docker-runner-autoscaler.yaml b/openshift/manifests/docker-runner-autoscaler.yaml index 8b13789..00048fd 100644 --- a/openshift/manifests/docker-runner-autoscaler.yaml +++ b/openshift/manifests/docker-runner-autoscaler.yaml @@ -1 +1,16 @@ - +apiVersion: actions.summerwind.dev/v1alpha1 +kind: HorizontalRunnerAutoscaler +metadata: + name: openshift-docker-autoscaler +spec: + scaleDownDelaySecondsAfterScaleOut: 300 + scaleTargetRef: + name: openshift-docker-runners + minReplicas: 1 + maxReplicas: 4 + metrics: + - type: PercentageRunnersBusy + scaleUpThreshold: '0.75' + scaleDownThreshold: '0.25' + scaleUpFactor: '2' + scaleDownFactor: '0.5'