Skip to content

infra: self-hosted runner manifest (closes private-repo CI-billing exhaustion)#19

Merged
mastermanas805 merged 1 commit into
masterfrom
infra/self-hosted-runner-pb02-fixed-2026-05-21
May 21, 2026
Merged

infra: self-hosted runner manifest (closes private-repo CI-billing exhaustion)#19
mastermanas805 merged 1 commit into
masterfrom
infra/self-hosted-runner-pb02-fixed-2026-05-21

Conversation

@mastermanas805
Copy link
Copy Markdown
Member

Adds k8s/self-hosted-runner.yaml — runs actions/runner pod on DOKS to eliminate metered CI minutes for worker/provisioner/infra. Incorporates 8 PB02-H50 review fixes (PVC, SIGTERM-only, GHCR_PUSH_TOKEN, runner 2.334.0, non-root, Recreate, CGNAT block). DO NOT MERGE without applying — operator must follow the 8-step procedure in the file header (create PATs, create secret, kubectl apply, patch each workflow's runs-on).

…exhaustion)

Adds k8s/self-hosted-runner.yaml: a Deployment that runs an actions/runner pod on the existing DOKS cluster. Eliminates metered CI minutes for private repos (worker, provisioner, infra). Costs zero ongoing — uses already-paid DigitalOcean node-pool budget.

Incorporates PB02-H50 review findings:
- Persistent PVC for .runner state across pod restarts (no more re-registration on every restart)
- trap on SIGTERM/SIGINT only (not EXIT — that fires after every completed job and deregisters)
- Operator setup steps include the GHCR_PUSH_TOKEN secret (required for Deploy workflows)
- actions/runner image pinned to 2.334.0 (current at time of write)
- runAsUser/runAsGroup/fsGroup 1001 — non-root container
- strategy Recreate so two pods never share RUNNER_NAME during rollout
- Optional NetworkPolicy include block lists 100.64.0.0/10 CGNAT (DOKS pod-CIDR variant)
- ServiceAccount + Namespace defined explicitly

OPERATOR ACTION REQUIRED — see file header for the 8-step apply procedure. Trust-boundary notes documented inline.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@mastermanas805 mastermanas805 force-pushed the infra/self-hosted-runner-pb02-fixed-2026-05-21 branch from 9f2e063 to a1dd73c Compare May 21, 2026 16:29
@mastermanas805 mastermanas805 merged commit 1da0eab into master May 21, 2026
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant