forgejo: fix deploy runner registration, cap job memory, prune nightly #9

Merged
sirius merged 1 commit from feat/deploy-runner-fixes into master 2026-10-23 03:53:32 +00:00
Owner

Follow-up to #8.

  • init container fix: register failed with open /data/runner.ini: permission denied because kubelet creates the hostPath /data as root:root and the runner image's default user cannot write there. Run the init container as root.
  • job memory cap: --memory 3g --memory-swap 3g in container.options on both Pi runners. The Pi has 8 GiB and is already using swap; two concurrent jobs must not OOM it. This caps the job container only - sibling docker run containers (where the Rust builds actually happen) are not governed by the runner.
  • prune CronJob: exited containers older than 48h, images older than 168h, builder cache older than 72h, daily on the Pi. The single / volume was at 76% (666G/917G).
Follow-up to #8. - **init container fix**: register failed with `open /data/runner.ini: permission denied` because kubelet creates the hostPath `/data` as root:root and the runner image's default user cannot write there. Run the init container as root. - **job memory cap**: `--memory 3g --memory-swap 3g` in `container.options` on both Pi runners. The Pi has 8 GiB and is already using swap; two concurrent jobs must not OOM it. This caps the job container only - sibling `docker run` containers (where the Rust builds actually happen) are not governed by the runner. - **prune CronJob**: exited containers older than 48h, images older than 168h, builder cache older than 72h, daily on the Pi. The single / volume was at 76% (666G/917G).
- 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.
sirius merged commit 284f1d5e1e into master 2026-10-23 03:53:32 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
sirius/homek8s!9
No description provided.