-
Notifications
You must be signed in to change notification settings - Fork 6
/
prod-centos8.yml
44 lines (44 loc) · 1000 Bytes
/
prod-centos8.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
apiVersion: actions.summerwind.dev/v1alpha1
kind: RunnerDeployment
metadata:
name: centos8
namespace: runners
spec:
replicas: 2
template:
spec:
enterprise: ENTERPRISE-NAME-HERE
ephemeral: true
image: docker.GHE-HOSTNAME-HERE/goobernetes/centos8:latest
imagePullPolicy: Always
imagePullSecrets:
- name: ghe
dockerdWithinRunnerContainer: true
dockerMTU: 1450
resources:
limits:
cpu: "4000m"
memory: "8Gi"
requests:
cpu: "200m"
memory: "200Mi"
labels:
- docker
- centos8
---
apiVersion: actions.summerwind.dev/v1alpha1
kind: HorizontalRunnerAutoscaler
metadata:
name: centos8-autoscaling
spec:
scaleTargetRef:
name: centos8
minReplicas: 2
maxReplicas: 6
scaleDownDelaySecondsAfterScaleOut: 60
metrics:
- type: PercentageRunnersBusy
scaleUpThreshold: '0.75'
scaleDownThreshold: '0.3'
scaleUpFactor: '1.5'
scaleDownFactor: '0.7'