-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrunner-k8s.yaml
More file actions
52 lines (52 loc) · 1.49 KB
/
runner-k8s.yaml
File metadata and controls
52 lines (52 loc) · 1.49 KB
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
apiVersion: actions.github.com/v1alpha1
kind: AutoscalingRunnerSet
metadata:
name: runner-set-k8s
namespace: arc-runners
labels:
app.kubernetes.io/version: "0.11.0"
spec:
githubConfigUrl: https://github.com/opdev/github-arc-test
githubConfigSecret: runner-credentials
template:
spec:
containers:
- command:
- /home/runner/run.sh
image: ghcr.io/actions/actions-runner:latest
name: runner
env:
- name: ACTIONS_RUNNER_CONTAINER_HOOKS
value: /home/runner/k8s/index.js
- name: ACTIONS_RUNNER_POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: ACTIONS_RUNNER_REQUIRE_JOB_CONTAINER
value: "true"
volumeMounts:
- name: work
mountPath: /home/runner/_work
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
runAsNonRoot: true
runAsUser: 1001
runAsGroup: 123
restartPolicy: Never
securityContext:
fsGroup: 1001 # https://github.com/actions/runner/issues/981#issuecomment-1777916099
serviceAccountName: gha-rs-kube-mode
volumes:
- name: work
ephemeral:
volumeClaimTemplate:
spec:
accessModes:
- ReadWriteOnce
storageClassName: gp3-csi
resources:
requests:
storage: 1Gi