From 1aa2e55f227911f1adffbf9baf18d82cdd4851cb Mon Sep 17 00:00:00 2001 From: Remy Moll Date: Sat, 18 May 2024 13:57:26 +0200 Subject: [PATCH] try a better gitea actions runner --- infrastructure/gitea/actions.deployment.yaml | 14 ++++++++++++-- infrastructure/gitea/kustomization.yaml | 4 ++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/infrastructure/gitea/actions.deployment.yaml b/infrastructure/gitea/actions.deployment.yaml index 4366d55..e0e17c2 100644 --- a/infrastructure/gitea/actions.deployment.yaml +++ b/infrastructure/gitea/actions.deployment.yaml @@ -12,7 +12,7 @@ spec: app: actions-runner spec: hostname: kube-runner - serviceAccountName: actions-runner + # serviceAccountName: actions-runner containers: - name: actions-runner image: actions-runner @@ -20,7 +20,16 @@ spec: requests: memory: "128Mi" cpu: "500m" + limits: + memory: "2Gi" + cpu: "2" 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.kluster.moll.re" - name: GITEA_RUNNER_REGISTRATION_TOKEN @@ -33,7 +42,8 @@ spec: volumeMounts: - name: runner-data mountPath: /data + securityContext: + privileged: true volumes: - name: runner-data emptyDir: {} - diff --git a/infrastructure/gitea/kustomization.yaml b/infrastructure/gitea/kustomization.yaml index 214db6f..c48f4dd 100644 --- a/infrastructure/gitea/kustomization.yaml +++ b/infrastructure/gitea/kustomization.yaml @@ -17,8 +17,8 @@ namespace: gitea images: - name: actions-runner - newName: ghcr.io/christopherhx/gitea-actions-runner - newTag: v0.0.11 + newName: gitea/act_runner + newTag: nightly-dind-rootless helmCharts: