Yusuke Kuoka 2022-02-09 09:16:46 +09:00 committed by GitHub
parent a51fb90cd2
commit 59437ef79f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 26 additions and 0 deletions

View File

@ -397,6 +397,8 @@ spec:
scaleDownDelaySecondsAfterScaleOut: 300 scaleDownDelaySecondsAfterScaleOut: 300
scaleTargetRef: scaleTargetRef:
name: example-runner-deployment name: example-runner-deployment
# Uncomment the below in case the target is not RunnerDeployment but RunnerSet
#kind: RunnerSet
minReplicas: 1 minReplicas: 1
maxReplicas: 5 maxReplicas: 5
metrics: metrics:
@ -422,6 +424,8 @@ spec:
scaleTargetRef: scaleTargetRef:
# Your RunnerDeployment Here # Your RunnerDeployment Here
name: example-runner-deployment name: example-runner-deployment
# Uncomment the below in case the target is not RunnerDeployment but RunnerSet
#kind: RunnerSet
minReplicas: 1 minReplicas: 1
maxReplicas: 5 maxReplicas: 5
# Your chosen scaling metrics here # Your chosen scaling metrics here
@ -464,6 +468,8 @@ metadata:
spec: spec:
scaleTargetRef: scaleTargetRef:
name: example-runner-deployment name: example-runner-deployment
# Uncomment the below in case the target is not RunnerDeployment but RunnerSet
#kind: RunnerSet
minReplicas: 1 minReplicas: 1
maxReplicas: 5 maxReplicas: 5
metrics: metrics:
@ -497,6 +503,8 @@ metadata:
spec: spec:
scaleTargetRef: scaleTargetRef:
name: example-runner-deployment name: example-runner-deployment
# Uncomment the below in case the target is not RunnerDeployment but RunnerSet
#kind: RunnerSet
minReplicas: 1 minReplicas: 1
maxReplicas: 5 maxReplicas: 5
metrics: metrics:
@ -516,6 +524,8 @@ metadata:
spec: spec:
scaleTargetRef: scaleTargetRef:
name: example-runner-deployment name: example-runner-deployment
# Uncomment the below in case the target is not RunnerDeployment but RunnerSet
#kind: RunnerSet
minReplicas: 1 minReplicas: 1
maxReplicas: 5 maxReplicas: 5
metrics: metrics:
@ -543,6 +553,8 @@ kind: HorizontalRunnerAutoscaler
spec: spec:
scaleTargetRef: scaleTargetRef:
name: example-runners name: example-runners
# Uncomment the below in case the target is not RunnerDeployment but RunnerSet
#kind: RunnerSet
scaleUpTriggers: scaleUpTriggers:
- githubEvent: - githubEvent:
checkRun: checkRun:
@ -611,6 +623,8 @@ kind: HorizontalRunnerAutoscaler
spec: spec:
scaleTargetRef: scaleTargetRef:
name: example-runners name: example-runners
# Uncomment the below in case the target is not RunnerDeployment but RunnerSet
#kind: RunnerSet
scaleUpTriggers: scaleUpTriggers:
- githubEvent: {} - githubEvent: {}
duration: "30m" duration: "30m"
@ -641,6 +655,8 @@ kind: HorizontalRunnerAutoscaler
spec: spec:
scaleTargetRef: scaleTargetRef:
name: example-runners name: example-runners
# Uncomment the below in case the target is not RunnerDeployment but RunnerSet
#kind: RunnerSet
scaleUpTriggers: scaleUpTriggers:
- githubEvent: - githubEvent:
checkRun: checkRun:
@ -665,6 +681,8 @@ kind: HorizontalRunnerAutoscaler
spec: spec:
scaleTargetRef: scaleTargetRef:
name: example-runners name: example-runners
# Uncomment the below in case the target is not RunnerDeployment but RunnerSet
#kind: RunnerSet
scaleUpTriggers: scaleUpTriggers:
- githubEvent: - githubEvent:
checkRun: checkRun:
@ -693,6 +711,8 @@ kind: HorizontalRunnerAutoscaler
spec: spec:
scaleTargetRef: scaleTargetRef:
name: example-runners name: example-runners
# Uncomment the below in case the target is not RunnerDeployment but RunnerSet
#kind: RunnerSet
scaleUpTriggers: scaleUpTriggers:
- githubEvent: - githubEvent:
pullRequest: pullRequest:
@ -719,6 +739,8 @@ kind: HorizontalRunnerAutoscaler
spec: spec:
scaleTargetRef: scaleTargetRef:
name: example-runners name: example-runners
# Uncomment the below in case the target is not RunnerDeployment but RunnerSet
#kind: RunnerSet
scaleUpTriggers: scaleUpTriggers:
- githubEvent: - githubEvent:
push: push:
@ -764,6 +786,8 @@ metadata:
spec: spec:
scaleTargetRef: scaleTargetRef:
name: example-runner-deployment name: example-runner-deployment
# Uncomment the below in case the target is not RunnerDeployment but RunnerSet
#kind: RunnerSet
scheduledOverrides: scheduledOverrides:
# Override minReplicas to 100 only between 2021-06-01T00:00:00+09:00 and 2021-06-03T00:00:00+09:00 # Override minReplicas to 100 only between 2021-06-01T00:00:00+09:00 and 2021-06-03T00:00:00+09:00
- startTime: "2021-06-01T00:00:00+09:00" - startTime: "2021-06-01T00:00:00+09:00"
@ -784,6 +808,8 @@ metadata:
spec: spec:
scaleTargetRef: scaleTargetRef:
name: example-runner-deployment name: example-runner-deployment
# Uncomment the below in case the target is not RunnerDeployment but RunnerSet
#kind: RunnerSet
scheduledOverrides: scheduledOverrides:
# Override minReplicas to 0 only between 0am sat to 0am mon # Override minReplicas to 0 only between 0am sat to 0am mon
- startTime: "2021-05-01T00:00:00+09:00" - startTime: "2021-05-01T00:00:00+09:00"