apiVersion: apps/v1 kind: Deployment metadata: name: gitea-runner namespace: gitea-runner spec: # Cluster nodes may use containerd and hostPath admission policy. The # Docker-socket runner stays disabled across all cluster profiles; the # homelab uses the Debian host systemd runner instead. replicas: 0 selector: matchLabels: app: gitea-runner template: metadata: labels: app: gitea-runner spec: nodeSelector: homelab.dev/node-role: app tolerations: - key: node-role.kubernetes.io/control-plane operator: Exists effect: NoSchedule - key: node-role.kubernetes.io/master operator: Exists effect: NoSchedule containers: - name: runner image: gitea/act_runner:0.2.11 securityContext: allowPrivilegeEscalation: false resources: requests: cpu: 50m memory: 128Mi limits: cpu: 500m memory: 512Mi env: - name: GITEA_INSTANCE_URL valueFrom: secretKeyRef: name: gitea-runner-secrets key: GITEA_INSTANCE_URL - name: GITEA_RUNNER_REGISTRATION_TOKEN valueFrom: secretKeyRef: name: gitea-runner-secrets key: GITEA_REGISTRATION_TOKEN - name: GITEA_RUNNER_NAME value: "k8s-runner" - name: GITEA_RUNNER_LABELS value: "k8s,ubuntu-latest:docker://node:18-bullseye,debian-latest:docker://node:18-bullseye" volumeMounts: - name: runner-data mountPath: /data - name: docker-sock mountPath: /var/run/docker.sock volumes: - name: runner-data persistentVolumeClaim: claimName: gitea-runner-data - name: docker-sock hostPath: path: /var/run/docker.sock type: Socket