2026-07-11 19:17:34 -07:00
|
|
|
runner:
|
|
|
|
|
image:
|
2026-09-05 23:43:21 -07:00
|
|
|
repository: code.forgejo.org/forgejo/runner
|
2026-09-06 07:06:44 -07:00
|
|
|
tag: "6"
|
2026-08-21 16:49:26 -07:00
|
|
|
name: golang-runner
|
2026-09-06 07:06:44 -07:00
|
|
|
# Label image is what workflow steps run in (NOT the runner daemon image).
|
|
|
|
|
# golang:1.26-bookworm: Debian, root, apt-get, Go, git.
|
|
|
|
|
# Install Node.js/docker in workflow steps as needed.
|
|
|
|
|
labels: "golang:docker://golang:1.26-bookworm"
|
2026-07-21 09:35:32 -07:00
|
|
|
forgejoUrl: http://forgejo-gitea-http.cicd.svc.cluster.local:3000
|
2026-07-11 19:17:34 -07:00
|
|
|
tokenSecret: runner-token
|
|
|
|
|
resources:
|
|
|
|
|
requests:
|
|
|
|
|
cpu: 100m
|
|
|
|
|
memory: 256Mi
|
|
|
|
|
limits:
|
|
|
|
|
cpu: "2"
|
|
|
|
|
memory: 4Gi
|
|
|
|
|
|
|
|
|
|
dind:
|
|
|
|
|
image:
|
|
|
|
|
repository: docker
|
|
|
|
|
tag: "27-dind" # pin exact release before apply
|
|
|
|
|
resources:
|
|
|
|
|
requests:
|
|
|
|
|
cpu: 100m
|
|
|
|
|
memory: 256Mi
|
|
|
|
|
limits:
|
|
|
|
|
cpu: "2"
|
|
|
|
|
memory: 4Gi
|
|
|
|
|
|
|
|
|
|
persistence:
|
|
|
|
|
reg:
|
2026-07-23 11:00:09 -07:00
|
|
|
storageClass: longhorn # Unified StorageClass (3 replicas)
|
2026-08-30 07:08:59 -07:00
|
|
|
size: 20Gi # .runner registration file + action tool cache + actcache artifacts
|
2026-07-11 19:17:34 -07:00
|
|
|
dind:
|
2026-07-23 11:00:09 -07:00
|
|
|
storageClass: longhorn # Unified StorageClass (3 replicas)
|
|
|
|
|
size: 30Gi # docker layer cache — keeps rebuilds fast across restarts
|
2026-07-11 19:17:34 -07:00
|
|
|
|
|
|
|
|
tolerations:
|
|
|
|
|
- key: node-role.kubernetes.io/control-plane
|
|
|
|
|
operator: Exists
|
|
|
|
|
effect: NoSchedule
|
2026-08-18 15:08:02 -07:00
|
|
|
|
2026-08-30 09:29:38 -07:00
|
|
|
# Pin to az-b (talos-cp-2) — more Longhorn storage than az-a (worker-1 over-provisioned).
|
|
|
|
|
# RWO PVCs will recreate on talos-cp-2 when nodeSelector changes.
|
2026-08-18 15:08:02 -07:00
|
|
|
nodeSelector:
|
2026-08-30 09:29:38 -07:00
|
|
|
topology.kubernetes.io/zone: az-b
|
2026-08-30 07:08:59 -07:00
|
|
|
|
|
|
|
|
# GC CronJob — prunes Docker images/volumes/build-cache and actcache across
|
|
|
|
|
# ALL forgejo-runner pods. Only enable in default values (golang instance);
|
|
|
|
|
# disable in per-runner overrides so it renders once.
|
|
|
|
|
gc:
|
|
|
|
|
enabled: true
|
2026-09-02 19:52:41 -07:00
|
|
|
schedule: "*/30 * * * *" # every 30 minutes
|
2026-08-30 07:08:59 -07:00
|
|
|
image: alpine/k8s:1.31.0
|
2026-09-05 14:33:13 -07:00
|
|
|
pruneAge: "30m" # Docker artifacts unused longer than this get pruned
|
|
|
|
|
pruneAgeHours: 0.5 # Same as pruneAge but numeric for date arithmetic in shell
|
2026-08-30 09:23:09 -07:00
|
|
|
actcacheMaxAgeDays: 1 # actcache files older than N days (aggressive for heavy Rust cargo builds)
|