feat(ci-runners): run the deploy runner in a Kata microVM (staged)
The CI capsule cannot enforce PSA baseline: every nested dockerd needs SYS_ADMIN+NET_ADMIN in the pod spec and baseline forbids exactly those, which sysbox, gVisor and Kata all reproduce (measured on both arches, card t_8aa4af50). What a runtime CAN change is what privileged:true means. Stage 1, one runner: forgejo-runner-deploy-arm64 (rpi) gets runtimeClassName: kata-qemu, so its privileged dind and job containers run inside a QEMU/KVM microVM instead of on rpi's host namespaces. The amd64 and shared arm64 runners stay on privileged dind under runc, untouched. Kata-specific plumbing in the same Deployment: - loop-backed ext4 data-root (16GiB image on the existing claim) because overlayfs refuses virtiofs and Docker would silently fall back to vfs; - binfmt_misc + tonistiigi/binfmt --install amd64 on every start, because the guest kernel has no qemu handlers and deploy-site.yml cross-builds amd64; - the runner waits for /var/run/dind-ready (touched after both are set up). RuntimeClass kata-qemu is cluster-scoped; the containerd handler lives on rpi only (/etc/containerd/conf.d/50-kata.toml, kata-static 4.4.0). Rollback is one field. docs/pod-security.md records the measurement and states plainly that the namespace stays enforce: privileged.
This commit is contained in:
parent
65b16a82ab
commit
989a0997fb
4 changed files with 180 additions and 14 deletions
|
|
@ -25,6 +25,9 @@ resources:
|
|||
# (its helper pod is hardcoded to siriussec). Must sort before the runner
|
||||
# Deployments that consume the claims.
|
||||
- runner-dind-storage.yaml
|
||||
# Cluster-scoped RuntimeClass for the Kata microVM that the rpi deploy runner
|
||||
# uses (card t_8aa4af50). Its handler exists in containerd on rpi only.
|
||||
- kata-runtimeclass.yaml
|
||||
- runner-arm64.yaml
|
||||
- runner-amd64.yaml
|
||||
- runner-deploy-arm64.yaml
|
||||
|
|
|
|||
Loading…
Reference in a new issue