fix(ci-runners): back the Kata dind socket with guest tmpfs
A disk-backed emptyDir is a virtiofs share under Kata, and a unix socket on virtiofs is visible across the pod but unconnectable: the runner crashlooped on 'cannot ping the docker daemon ... unix:///var/run/docker.sock' although ls -l showed srw-rw---- root:1000 and the dind sidecar's own 'docker version' on the same path worked. medium: Memory makes /var/run a tmpfs inside the guest, so the socket is a real inode for both containers and the existing '-v /var/run/docker.sock /var/run/docker.sock' job option keeps working. Verified: the runner declared successfully and polls (deploy-arm64 runner).
This commit is contained in:
parent
e5a0460e53
commit
8915cf92b5
1 changed files with 14 additions and 1 deletions
|
|
@ -281,4 +281,17 @@ spec:
|
|||
persistentVolumeClaim:
|
||||
claimName: forgejo-runner-deploy-arm64-dind
|
||||
- name: dind-run
|
||||
emptyDir: {}
|
||||
# tmpfs on purpose, NOT the default disk-backed emptyDir: under Kata a
|
||||
# disk emptyDir is a virtiofs share, and a unix socket created on
|
||||
# virtiofs is visible to the other containers in the pod but
|
||||
# unconnectable. Measured 2026-11-27: the runner crashlooped on
|
||||
# `cannot ping the docker daemon ... unix:///var/run/docker.sock`
|
||||
# although `ls -l` showed the socket `srw-rw---- root:1000`, while the
|
||||
# dind sidecar's own `docker version` on the same path worked. A
|
||||
# memory-backed emptyDir is a tmpfs inside the guest, so the socket is
|
||||
# a real inode the runner and the job containers can both connect to,
|
||||
# and the existing `-v /var/run/docker.sock` job option keeps working.
|
||||
# 64Mi holds the socket, the `dind-ready` marker and nothing else.
|
||||
emptyDir:
|
||||
medium: Memory
|
||||
sizeLimit: 64Mi
|
||||
|
|
|
|||
Loading…
Reference in a new issue