diff --git a/runner/config.yaml b/runner/config.yaml new file mode 100644 index 0000000..b83fbda --- /dev/null +++ b/runner/config.yaml @@ -0,0 +1,11 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: gitea-runner-config + namespace: runner +data: + config.yaml: | + container: + docker_host: tcp://localhost:2375 + network: host + force_pull: false diff --git a/runner/deployment.yaml b/runner/deployment.yaml index 7e8417b..2c60a4a 100644 --- a/runner/deployment.yaml +++ b/runner/deployment.yaml @@ -37,6 +37,11 @@ spec: value: tcp://localhost:2375 - name: DOCKER_TLS_VERIFY value: "0" + - name: CONFIG_FILE + value: /etc/runner/config.yaml + volumeMounts: + - name: runner-config + mountPath: /etc/runner - name: dind image: docker:dind @@ -53,3 +58,8 @@ spec: - name: DOCKER_TLS_CERTDIR value: "" args: ["--host=tcp://0.0.0.0:2375"] + + volumes: + - name: runner-config + configMap: + name: gitea-runner-config