2026-09-11 22:24:41 -04:00
|
|
|
apiVersion: apps/v1
|
|
|
|
|
kind: Deployment
|
|
|
|
|
metadata:
|
|
|
|
|
name: forgejo-runner
|
|
|
|
|
namespace: forgejo
|
|
|
|
|
labels:
|
|
|
|
|
app: forgejo-runner
|
|
|
|
|
spec:
|
|
|
|
|
replicas: 1
|
|
|
|
|
selector:
|
|
|
|
|
matchLabels:
|
|
|
|
|
app: forgejo-runner
|
|
|
|
|
strategy:
|
|
|
|
|
type: Recreate
|
|
|
|
|
template:
|
|
|
|
|
metadata:
|
|
|
|
|
labels:
|
|
|
|
|
app: forgejo-runner
|
|
|
|
|
spec:
|
|
|
|
|
nodeSelector:
|
|
|
|
|
kubernetes.io/hostname: rpi
|
|
|
|
|
tolerations:
|
|
|
|
|
- key: dedicated
|
|
|
|
|
operator: Equal
|
|
|
|
|
value: network
|
|
|
|
|
effect: PreferNoSchedule
|
2026-09-11 22:25:44 -04:00
|
|
|
securityContext:
|
|
|
|
|
supplementalGroups: [984]
|
2026-09-11 22:24:41 -04:00
|
|
|
containers:
|
|
|
|
|
- name: runner
|
|
|
|
|
image: code.forgejo.org/forgejo/runner:5.0.1
|
|
|
|
|
imagePullPolicy: IfNotPresent
|
|
|
|
|
command:
|
|
|
|
|
- forgejo-runner
|
|
|
|
|
- --config
|
|
|
|
|
- /config/config.toml
|
|
|
|
|
- daemon
|
|
|
|
|
env:
|
|
|
|
|
- name: DOCKER_HOST
|
|
|
|
|
value: unix:///var/run/docker.sock
|
|
|
|
|
securityContext:
|
|
|
|
|
privileged: true
|
2026-09-11 22:25:44 -04:00
|
|
|
runAsUser: 0
|
|
|
|
|
runAsGroup: 0
|
2026-09-11 22:24:41 -04:00
|
|
|
volumeMounts:
|
|
|
|
|
- name: docker-sock
|
|
|
|
|
mountPath: /var/run/docker.sock
|
|
|
|
|
- name: docker-static
|
|
|
|
|
mountPath: /usr/bin/docker
|
|
|
|
|
readOnly: true
|
|
|
|
|
- name: cli-plugins
|
|
|
|
|
mountPath: /usr/local/lib/docker/cli-plugins
|
|
|
|
|
readOnly: true
|
|
|
|
|
- name: config-toml
|
|
|
|
|
mountPath: /config/config.toml
|
|
|
|
|
subPath: config.toml
|
|
|
|
|
- name: runner-ini
|
|
|
|
|
mountPath: /config/runner.ini
|
|
|
|
|
- name: cache
|
|
|
|
|
mountPath: /opt/siriusdevops/runner/cache
|
|
|
|
|
- name: siriusdevops
|
|
|
|
|
mountPath: /opt/siriusdevops
|
|
|
|
|
resources:
|
|
|
|
|
requests:
|
|
|
|
|
cpu: 50m
|
|
|
|
|
memory: 128Mi
|
|
|
|
|
limits:
|
|
|
|
|
memory: 512Mi
|
|
|
|
|
volumes:
|
|
|
|
|
- name: docker-sock
|
|
|
|
|
hostPath:
|
|
|
|
|
path: /var/run/docker.sock
|
|
|
|
|
type: Socket
|
|
|
|
|
- name: docker-static
|
|
|
|
|
hostPath:
|
|
|
|
|
path: /usr/local/bin/docker-static
|
|
|
|
|
type: File
|
|
|
|
|
- name: cli-plugins
|
|
|
|
|
hostPath:
|
|
|
|
|
path: /opt/siriusdevops/runner/cli-plugins
|
|
|
|
|
type: DirectoryOrCreate
|
|
|
|
|
- name: config-toml
|
|
|
|
|
configMap:
|
|
|
|
|
name: forgejo-runner-config
|
|
|
|
|
- name: runner-ini
|
|
|
|
|
hostPath:
|
|
|
|
|
path: /opt/siriusdevops/runner/config/runner.ini
|
|
|
|
|
type: File
|
|
|
|
|
- name: cache
|
|
|
|
|
hostPath:
|
|
|
|
|
path: /opt/siriusdevops/runner/cache
|
|
|
|
|
type: DirectoryOrCreate
|
|
|
|
|
- name: siriusdevops
|
|
|
|
|
hostPath:
|
|
|
|
|
path: /opt/siriusdevops
|
|
|
|
|
type: Directory
|