Files
core-apps/gitea-runner/deployment.yaml
2025-03-13 11:38:27 -04:00

48 lines
1.3 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: gitea-runner
name: gitea-runner
spec:
replicas: 1
selector:
matchLabels:
app: gitea-runner
template:
spec:
restartPolicy: Always
volumes:
- name: runner-data
persistentVolumeClaim:
claimName: gitea-runner-pvc
securityContext:
fsGroup: 1000
containers:
- name: runner
image: gitea/act_runner:nightly-dind-rootless
imagePullPolicy: Always
# command: ["sh", "-c", "while ! nc -z localhost 2376 </dev/null; do echo 'waiting for docker daemon...'; sleep 5; done; /sbin/tini -- /opt/act/run.sh"]
env:
- name: DOCKER_HOST
value: tcp://localhost:2376
- name: DOCKER_CERT_PATH
value: /certs/client
- name: DOCKER_TLS_VERIFY
value: "1"
- name: GITEA_INSTANCE_URL
value: https://git.dubyatp.xyz
- name: GITEA_RUNNER_REGISTRATION_TOKEN
valueFrom:
secretKeyRef:
name: gitea-runner-token
key: registration-token
securityContext:
privileged: true
volumeMounts:
- name: runner-data
mountPath: /data
resources:
limits:
memory: "1Gi"
cpu: "1000m"