mirror of
https://github.com/actions/actions-runner-controller.git
synced 2025-12-29 21:42:06 +08:00
feat: Use HorizontalRunnerAutoscaler for autoscaling
This commit is contained in:
@@ -46,42 +46,8 @@ spec:
|
||||
spec:
|
||||
description: RunnerReplicaSetSpec defines the desired state of RunnerDeployment
|
||||
properties:
|
||||
autoscaling:
|
||||
description: Autoscaling is set various configuration options for autoscaling
|
||||
this runner deployment.
|
||||
properties:
|
||||
metrics:
|
||||
items:
|
||||
properties:
|
||||
repositoryNames:
|
||||
description: RepositoryNames is the list of repository names
|
||||
to be used for calculating the metric. For example, a repository
|
||||
name is the REPO part of `github.com/USER/REPO`.
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
type:
|
||||
description: Type is the type of metric to be used for autoscaling.
|
||||
The only supported Type is TotalNumberOfQueuedAndProgressingWorkflowRuns
|
||||
type: string
|
||||
type: object
|
||||
type: array
|
||||
type: object
|
||||
maxReplicas:
|
||||
description: MinReplicas is the maximum number of replicas the deployment
|
||||
is allowed to scale
|
||||
type: integer
|
||||
minReplicas:
|
||||
description: MinReplicas is the minimum number of replicas the deployment
|
||||
is allowed to scale
|
||||
type: integer
|
||||
replicas:
|
||||
type: integer
|
||||
scaleDownDelaySecondsAfterScaleOut:
|
||||
description: ScaleDownDelaySecondsAfterScaleUp is the approximate delay
|
||||
for a scale down followed by a scale up Used to prevent flapping (down->up->down->...
|
||||
loop)
|
||||
type: integer
|
||||
template:
|
||||
properties:
|
||||
metadata:
|
||||
@@ -6762,9 +6728,6 @@ spec:
|
||||
and latest pods to be set for the primary RunnerSet This doesn't include
|
||||
outdated pods while upgrading the deployment and replacing the runnerset.
|
||||
type: integer
|
||||
lastSuccessfulScaleOutTime:
|
||||
format: date-time
|
||||
type: string
|
||||
readyReplicas:
|
||||
type: integer
|
||||
required:
|
||||
|
||||
Reference in New Issue
Block a user