-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeployment_git-runners.yaml
44 lines (44 loc) · 1.04 KB
/
deployment_git-runners.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: github-actions
namespace: github-actions
spec:
replicas: 2
selector:
matchLabels:
deployment: github-actions
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 25%
maxSurge: 25%
template:
metadata:
labels:
deployment: github-actions
spec:
serviceAccountName: sa-github-actions
containers:
- name: github-actions-runner
image: prismhosting/git-runner-builder-image:latest
securityContext:
runAsUser: 1001
resources:
limits:
cpu: 250m
memory: 1Gi
requests:
cpu: 100m
memory: 512Mi
env:
- name: GITHUB_OWNER
valueFrom:
configMapKeyRef:
key: github-owner
name: github-actions-environments
- name: GITHUB_PAT
valueFrom:
secretKeyRef:
key: github-pat
name: github-actions-pat