-
Notifications
You must be signed in to change notification settings - Fork 1
/
runner.yaml
62 lines (59 loc) · 1.37 KB
/
runner.yaml
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
apiVersion: actions.summerwind.dev/v1alpha1
kind: RunnerDeployment
metadata:
name: example-runnerdeploy
namespace: actions-runner-system
annotations:
cluster-autoscaler.kubernetes.io/safe-to-evict: "true"
labels:
name: example-runnerdeploy
spec:
replicas: 1
template:
spec:
repository: farrukh90/symmetrical-fortnight
image: farrukhsadykov/runner:latest
labels:
- example-runnerdeploy
---
apiVersion: actions.summerwind.dev/v1alpha1
kind: HorizontalRunnerAutoscaler
metadata:
name: example-runnerdeploy
namespace: actions-runner-system
annotations:
cluster-autoscaler.kubernetes.io/safe-to-evict: "true"
labels:
name: example-runnerdeploy
spec:
scaleTargetRef:
name: example-runnerdeploy
scaleDownDelaySecondsAfterScaleOut: 300
minReplicas: 2
maxReplicas: 20
metrics:
- type: TotalNumberOfQueuedAndInProgressWorkflowRuns
repositoryNames:
- farrukh90/symmetrical-fortnight
---
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: example-runnerdeploy
namespace: actions-runner-system
spec:
minAvailable: 1
selector:
matchLabels:
app: example-runnerdeploy
---
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: for-aws-tasks
parameters:
type: pd-standard
provisioner: kubernetes.io/gce-pd
reclaimPolicy: Retain
volumeBindingMode: Immediate
allowVolumeExpansion: false