54 lines
1.3 KiB
YAML
54 lines
1.3 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: github-runner
|
|
namespace: ci
|
|
labels:
|
|
app: github-runner
|
|
spec:
|
|
replicas: 0
|
|
selector:
|
|
matchLabels:
|
|
app: github-runner
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: github-runner
|
|
spec:
|
|
containers:
|
|
- name: runner
|
|
image: myoung34/github-runner:latest
|
|
env:
|
|
- name: ACCESS_TOKEN
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: github-runner-secret
|
|
key: ACCESS_TOKEN
|
|
- name: RUNNER_SCOPE
|
|
value: org
|
|
- name: ORG_NAME
|
|
value: harmonic-framework
|
|
- name: RUNNER_NAME
|
|
value: legion
|
|
- name: RUNNER_WORKDIR
|
|
value: /tmp/runner
|
|
- name: LABELS
|
|
value: self-hosted,linux,x64,legion
|
|
- name: DISABLE_AUTO_UPDATE
|
|
value: "true"
|
|
volumeMounts:
|
|
- name: docker-sock
|
|
mountPath: /var/run/docker.sock
|
|
resources:
|
|
requests:
|
|
memory: 512Mi
|
|
cpu: 250m
|
|
limits:
|
|
memory: 4Gi
|
|
cpu: "4"
|
|
volumes:
|
|
- name: docker-sock
|
|
hostPath:
|
|
path: /var/run/docker.sock
|
|
type: Socket
|