--- apiVersion: apps/v1 kind: Deployment metadata: labels: app: gitea-act-runner name: gitea-act-runner namespace: default spec: replicas: 1 selector: matchLabels: app: gitea-act-runner strategy: {} template: metadata: labels: app: gitea-act-runner spec: restartPolicy: Always hostNetwork: true volumes: - name: docker-certs emptyDir: {} - name: runner-data persistentVolumeClaim: claimName: longhorn-gitea-dind initContainers: - name: wait-for-gitea image: busybox command: - sh - -c - | while ! nc -z gitea-int-service 3000; do echo "Waiting for Gitea to be ready..." sleep 5 done echo "Gitea is ready!" containers: - name: runner image: gitea/act_runner:nightly command: ["sh", "-c", "while ! nc -z localhost 2376