chore(gitea-runners): Updated values for Dind support
Some checks failed
Validate K8s manifests / validate-manifests (push) Has been cancelled

This commit is contained in:
Daniël Groothuis
2025-10-28 19:00:34 +01:00
parent 239ed7b214
commit b4b9d0427b
2 changed files with 72 additions and 7 deletions

View File

@@ -4,10 +4,5 @@ kind: Kustomization
metadata:
name: gitea-runners
helmCharts:
- name: actions
repo: https://dl.gitea.com/charts/
version: 0.0.1
releaseName: gitea-actions
namespace: gitea-runners
valuesFile: values.yaml
resources:
- runner-artemis-1.yaml

View File

@@ -0,0 +1,70 @@
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: runner-artemis-1vol
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
storageClassName: standard
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: act-runner
name: act-runner
spec:
replicas: 1
selector:
matchLabels:
app: act-runner
strategy: {}
template:
metadata:
creationTimestamp: null
labels:
app: act-runner
spec:
restartPolicy: Always
volumes:
- name: docker-certs
emptyDir: {}
- name: runner-data
persistentVolumeClaim:
claimName: runner-artemis-1-vol
containers:
- name: runner-artemis-1
image: gitea/act_runner:nightly
command: ["sh", "-c", "while ! nc -z localhost 2376 </dev/null; do echo 'waiting for docker daemon...'; sleep 5; done; /sbin/tini -- run.sh"]
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.dgse.cloud"
- name: GITEA_RUNNER_REGISTRATION_TOKEN
valueFrom:
secretKeyRef:
name: gitea-runner-token
key: token
volumeMounts:
- name: docker-certs
mountPath: /certs
- name: runner-data
mountPath: /data
- name: daemon
image: docker:23.0.6-dind
env:
- name: DOCKER_TLS_CERTDIR
value: /certs
securityContext:
privileged: true
volumeMounts:
- name: docker-certs
mountPath: /certs