mirror of
https://gitea.com/gitea/runner.git
synced 2026-11-09 16:50:28 +00:00
Simplify kubernetes dind example allowing for default docker config in workflows (#709)
With this docker clients in workflows can connect on the default socket without needing to change DOCKER_HOST. Startup probe also removes the need for custom shell command. Co-authored-by: silverwind <[email protected]> Reviewed-on: https://gitea.com/gitea/runner/pulls/709 Co-authored-by: thisisqasim <[email protected]> Co-committed-by: thisisqasim <[email protected]>
This commit is contained in:
1 parent
dda5841af8
commit
00b7fec80f
3 files changed
+24
-25
No files matched your search
@@ -4,7 +4,7 @@ metadata:
|
||||
name: runner-vol
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 1Gi
|
||||
@@ -35,7 +35,6 @@ spec:
|
||||
strategy: {}
|
||||
template:
|
||||
metadata:
|
||||
creationTimestamp: null
|
||||
labels:
|
||||
app: runner
|
||||
spec:
|
||||
@@ -50,7 +49,6 @@ spec:
|
||||
- name: runner
|
||||
image: gitea/runner:nightly-dind-rootless
|
||||
imagePullPolicy: Always
|
||||
# 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
|
||||
|
||||
Reference in new issue
Block a user