-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeployment.yaml
45 lines (45 loc) · 1.29 KB
/
deployment.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: github-runner-autoscale
labels:
app: github-runner-autoscale
spec:
replicas: 1
selector:
matchLabels:
app: github-runner-autoscale
template:
metadata:
labels:
app: github-runner-autoscale
spec:
containers:
- name: github-runner-autoscale
image: hurb/github-runner-autoscale:latest
imagePullPolicy: Always
env:
- name: ORG_NAME
value: <<your organization name here>>
- name: K8S_HOST
value: <<your kubernetes host here>>
- name: LABEL
value: <<self hosted runner label>> # This is used for multiples types of runners
- name: MIN_RUNNERS
value: "6"
- name: MAX_RUNNERS
value: "50"
- name: DEPLOYMENT_NAME
value: github-runners # You can change the name and namespace if want
- name: NAMESPACE
value: default
- name: GITHUB_ACCESS_TOKEN
valueFrom:
secretKeyRef:
name: github-access-token
key: personal.token
- name: K8S_TOKEN
valueFrom:
secretKeyRef:
name: <<your github service account secret name here>>
key: token