-
Notifications
You must be signed in to change notification settings - Fork 1
/
deployment.yaml
42 lines (42 loc) · 949 Bytes
/
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
apiVersion: apps/v1
kind: Deployment
metadata:
name: github-runners
labels:
app: runner
spec:
replicas: 6
selector:
matchLabels:
app: runner
template:
metadata:
labels:
app: runner
spec:
terminationGracePeriodSeconds: 60
containers:
- name: github-runner
image: hurb/github-runner-image:latest
imagePullPolicy: Always
env:
- name: LABELS
value: << Labels here >>
- name: ORG
value: <<you org here>>
- name: GITHUB_ACCESS_TOKEN
valueFrom:
secretKeyRef:
name: github-access-token
key: personal.token
resources:
limits:
cpu: 500m
memory: 4Gi
requests:
cpu: 250m
memory: 2Gi
lifecycle:
preStop:
exec:
command: ["/bin/sh","-c","./remove.sh"]