diff --git a/k8s/apps/gitea/deployment.yaml b/k8s/apps/gitea/deployment.yaml index d740069..eebd096 100644 --- a/k8s/apps/gitea/deployment.yaml +++ b/k8s/apps/gitea/deployment.yaml @@ -154,3 +154,63 @@ spec: value: "k8s-runner" - name: GITEA_RUNNER_LABELS value: "ubuntu-latest:docker://ghcr.io/catthehacker/ubuntu:act-latest,ubuntu-22.04:docker://ghcr.io/catthehacker/ubuntu:act-22.04,ubuntu-20.04:docker://ghcr.io/catthehacker/ubuntu:act-20.04" + +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: gitea-runner-desktop +spec: + replicas: 1 + selector: + matchLabels: + app: gitea-runner-desktop + template: + metadata: + labels: + app: gitea-runner-desktop + spec: + nodeSelector: + kubernetes.io/hostname: uk-desktop.tail2fe2d.ts.net + tolerations: + - key: workload + operator: Equal + value: desktop + effect: NoSchedule + volumes: + - name: docker-sock + hostPath: + path: /var/run/docker.sock + type: Socket + - name: runner-data + emptyDir: + sizeLimit: 30Gi + containers: + - name: gitea-runner + image: gitea/act_runner:nightly + resources: + requests: + cpu: "100m" + memory: "256Mi" + ephemeral-storage: "1Gi" + limits: + cpu: "3000m" + memory: "4Gi" + ephemeral-storage: "28Gi" + volumeMounts: + - name: docker-sock + mountPath: /var/run/docker.sock + - name: runner-data + mountPath: /data + env: + - name: GITEA_INSTANCE_URL + value: "https://gt.hexor.cy" + - name: GITEA_RUNNER_REGISTRATION_TOKEN + valueFrom: + secretKeyRef: + name: gitea-runner-act-runner-secrets + key: token + - name: GITEA_RUNNER_NAME + value: "k8s-runner-desktop" + - name: GITEA_RUNNER_LABELS + value: "ubuntu-latest:docker://ghcr.io/catthehacker/ubuntu:act-latest,ubuntu-22.04:docker://ghcr.io/catthehacker/ubuntu:act-22.04,ubuntu-20.04:docker://ghcr.io/catthehacker/ubuntu:act-20.04"