apiVersion: apps/v1 kind: Deployment metadata: name: gitea-runner namespace: gitea-runner spec: replicas: 1 selector: matchLabels: app: gitea-runner template: metadata: labels: app: gitea-runner spec: nodeSelector: kubernetes.io/hostname: debian 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 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