mirror of
https://github.com/actions/actions-runner-controller.git
synced 2025-12-12 12:36:55 +00:00
Update README.md
Ref https://github.com/actions-runner-controller/actions-runner-controller/issues/1100#issuecomment-1032775144
This commit is contained in:
26
README.md
26
README.md
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user