forgejo: let the deploy runner's init container write runner.ini; cap job memory; prune nightly
- init container runs as root: kubelet creates the hostPath /data as root:root and the runner image's default user cannot write runner.ini there. - container.options --memory 3g on both Pi runners: two concurrent jobs must not take the 8 GiB Pi (already using swap) to OOM. Caps the job container only. - forgejo-runner-prune CronJob: exited containers >48h, images >168h, builder cache >72h, so the single 917G / volume stops climbing.
This commit is contained in:
parent
1576240941
commit
741b9f13a7
4 changed files with 79 additions and 2 deletions
|
|
@ -55,6 +55,11 @@ spec:
|
|||
# dies with "exec format error" on the Pi.
|
||||
image: code.forgejo.org/forgejo/runner:5.0.1
|
||||
imagePullPolicy: IfNotPresent
|
||||
# The hostPath /data dir is created root:root by kubelet, and the
|
||||
# runner image's default user cannot write runner.ini into it.
|
||||
securityContext:
|
||||
runAsUser: 0
|
||||
runAsGroup: 0
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
|
|
|
|||
Loading…
Reference in a new issue