Commit graph

105 commits

Author SHA1 Message Date
fbae77e985 forgejo: give the prune job an hour
Container removal on the Pi measured ~10 min for 48 containers with a ci job
live; 30 minutes would kill the run half-way through the 61 GB image prune.
2026-10-23 00:13:36 -04:00
0d65194686 Merge pull request 'forgejo: give the prune job an hour' (#10) from feat/prune-deadline into master 2026-10-23 04:11:40 +00:00
741b9f13a7 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.
2026-10-22 23:55:21 -04:00
284f1d5e1e Merge pull request 'forgejo: fix deploy runner registration, cap job memory, prune nightly' (#9) from feat/deploy-runner-fixes into master 2026-10-23 03:53:32 +00:00
1576240941 forgejo: dedicated deploy-arm64 runner so CI cannot starve site deploys
deploy-site.yml must run on the Pi (127.0.0.1:5000 registry, Garage on host
network, host docker socket) but the Pi's only runner also serves every
runs-on: docker job in the instance. An onionwire Rust ci build therefore held
the single docker slot while the sirius-growth deploy sat in 'waiting'.

Adds a second runner instance on rpi declaring only the deploy-arm64 label,
with its own hostPath-backed registration (/opt/siriusdevops/runner-deploy/data)
so a pod restart reuses it instead of burning a single-use runner token.
2026-10-22 23:52:54 -04:00
76ab5b9cd6 Merge pull request 'forgejo: dedicated deploy-arm64 runner so CI cannot starve site deploys' (#8) from feat/runner-deploy-arm64 into master 2026-10-23 03:51:17 +00:00
Lance
45951c6200 siriusdevops: add a scoped CI deployer ServiceAccount
The site repo's CI used to ssh to the Pi and run docker there. It now rolls the
k8s Deployments through the API, so it needs an identity limited to
get/list/patch on deployments in this namespace (same pattern as sirius-growth).
2026-10-20 10:06:51 -04:00
Lance
237722b581 ingress: move public apps off the retired linode node onto siriussec
Linode VPSs are shut down. The Gateway listener has to be co-located with the
backend pods (hostNetwork Envoy returns 503 for cross-node backends), so all
public workloads now schedule on siriussec and the tunnel origin points there.

- nodeSelector linode -> siriussec (piedmont, sirius-growth, siriusdevops)
- siriusdevops site/contact now pull rebuilt images from the Forgejo registry
  (the old :dev tags existed only on the dead VPS containerd)
2026-10-20 09:01:24 -04:00
55342db125 Merge pull request #7: sirius-growth: run the CI image for the portal 2026-10-19 07:45:50 +00:00
devops
77d658b719 sirius-growth: portal image from CI tag latest, drop hand-pushed digest pin 2026-10-19 03:47:28 -04:00
bba13eefcb Merge pull request #6: sirius-growth: deploy the portal API on the existing hostname 2026-10-19 07:28:13 +00:00
Lance Walters
90355d4a76 sirius-growth: deploy the portal API on the existing hostname
FastAPI portal on 8091 behind /api/portal, image pinned to the API
commit 406f25c and its manifest digest. Route sits after /api/contact
and before the catch-all. Env comes from the sirius-growth-portal-app
Secret (DB URL, session secret, admin creds, Garage S3 keys); nothing
secret is in git.
2026-10-19 03:30:03 -04:00
36419c8fae Merge pull request #5: sirius-growth: add CNPG Cluster 'portal' 2026-10-19 07:01:21 +00:00
Sirius DevOps
73cc883d5e sirius-growth: add CNPG Cluster 'portal' (1 instance, 5Gi local-path on siriussec)
Database only. Bootstraps database/owner 'portal' from the
sirius-growth-portal-db basic-auth Secret. No API or route changes.
2026-10-19 03:03:09 -04:00
03acdf2841 Merge pull request 'sirius-growth: declare the CI deployer ServiceAccount' (#4) from feat/sirius-growth-deployer into master 2026-10-19 04:42:57 +00:00
Sirius DevOps
bb1ace7041 sirius-growth: declare the CI deployer ServiceAccount
The site repo's CI rolls the Deployment after pushing a new image, using a
kubeconfig stored as a repo secret. The token came from a ServiceAccount that
only existed because it was created by hand; declare it so a cluster rebuild
does not silently break deploys. Namespace-scoped, deployments only,
get/list/patch.
2026-10-19 00:44:48 -04:00
Lance Walters
5854f5a38b feat(sirius-growth): route /api/contact ahead of the page
Same shape as piedmont. The contact Deployment uses the new image.
2026-10-18 16:00:10 -04:00
Lance Walters
562343c33c feat(sirius-growth): route siriusgrowthsolutions.com to the site
No Cloudflare change in this commit. Origin must answer 200 before the tunnel is updated.
2026-10-18 15:26:00 -04:00
b7cedab548 feat(sirius-growth): deploy the static site on linode
No public hostname. Photos stay unwired: Garage website listener is loopback-only.
2026-10-18 06:51:41 +00:00
Lance Walters
5a98fd620f feat(sirius-growth): deploy the static site on linode
No HTTPRoute: no public hostname has been named. Photos stay on the
Pi Garage listener, which is loopback-only.
2026-10-18 02:52:08 -04:00
c736dfd108 feat(piedmont): route /api/contact to piedmont-contact
Merge pull request #2
2026-10-01 03:48:46 +00:00
Lance Walters
1242f3041e feat(piedmont): route /api/contact to piedmont-contact
Add the contact Deployment and Service, and match PathPrefix /api/contact before the site catch-all so the quote form does not hit nginx.
2026-09-30 23:50:03 -04:00
lance
d8f46972fb feat(piedmont): deploy PHS site + HTTPRoute for piedmonthomesvc.com
Serves the handyman site from the cluster instead of the Pi's dead
nginx/registry/Garage stack. The 78 /photos/ paths the site requests are
already baked into assets/portfolio/, so the image serves them via an
nginx alias and the Garage bucket is no longer a runtime dependency.

Image: forgejo.siriusdevops.com/sirius/phs-site:latest (public package).
2026-09-29 22:32:11 -04:00
Lance Walters
09ad7485af fix(forgejo): arm64 runner back to multi-arch forgejo/runner image
alex3305/forgejo-runner-dind ships an amd64 binary in its arm64 manifest,
so the Pi failed with 'exec /usr/local/bin/forgejo-runner: exec format
error'. That took pi-runner (the only runner declaring the bare 'docker'
label) offline and stalled every runs-on: docker job.
2026-09-18 23:50:30 -04:00
Lance Walters
9bbbe75279 switch other runner container 2026-09-18 23:38:58 -04:00
Lance Walters
320ae6106f replicas back to 1 2026-09-18 23:36:52 -04:00
Lance Walters
1ceadc112d chamge runner image 2026-09-18 23:25:19 -04:00
Lance Walters
5ec0fe4b0a add apps kustomizations 2026-09-18 23:14:34 -04:00
Lance Walters
39560ec003 bump up runner replicas 2 2026-09-18 23:12:30 -04:00
Lance Walters
4640f164c3 forgejo-runner-amd64: force_pull=true so a missing job image self-heals
The dind data root was emptied out of band (most likely a hand rm -rf
during the Forgejo 503 fix at ~22:34 UTC on 2026-09-18), which wiped
node:20-bullseye from the docker:27-dind sidecar's imagedb. With
force_pull unset (default false) act_runner treats a failed pull as
best-effort and the job dies in 2s with 'No such image' - a silent
failure no workflow can see or fix.

Setting force_pull: true under container: makes each job verify/re-pull
node:20-bullseye. Trade-off: one manifest check per job, and a Docker
Hub outage would then fail jobs a warm local image could have served.
node:20-bullseye is required regardless (actions/checkout is a JS action)
so we do not change the job image to dodge this.

Evidence: ConfigMap forgejo-runner-config amd64.toml had no force_pull
(key confirmed via kubectl on the Pi). The stale Error pod
forgejo-runner-amd64-59fbb7bfc4-rj2jp (6d17h, 0/2 containers) is left
for a separate cleanup card - it sits on a different overlay and is not
the cause, but should be gc'd.

Co-authored-by: Hermes Agent <[email protected]>
2026-09-18 20:48:50 -04:00
Hermes Agent
6c55f5f9d6
feat(cilium): enable bpf-lb-external-clusterip for WG spokes
Clients outside the cluster (WireGuard spokes: phone, SG VPS, laptop) could
reach node IPs, the API server and pod IPs but not ClusterIPs: Cilium
swallowed the service packets on the hub before any route applied, because
bpf-lb-external-clusterip defaulted to false.

Set bpf.lbExternalClusterIP: true so the HelmRelease renders
bpf-lb-external-clusterip=true.
2026-09-18 20:37:18 -04:00
Sirius DevOps
2fc8201719
feat: install Gateway API v1.5.1 CRDs (Cilium 1.20 requires referencegrants v1)
Cilium 1.20.1's operator refuses to create the Gateway controller when a
required CRD lacks v1:
  CRD "referencegrants.gateway.networking.k8s.io" does not have version "v1"

The cluster's Gateway API CRDs predate v1.5.x and only serve referencegrants
v1beta1. Vendor the v1.5.1 standard channel (referencegrants, tlsroutes,
backendtlspolicies, grpcroutes, listenersets etc. all at v1) and manage it
with a dedicated Flux Kustomization with prune=false so CRDs are never
auto-deleted.
2026-09-15 01:22:46 -04:00
Sirius DevOps
f84009c234
fix: align Gateway hostNetwork node selector with Envoy nodeSelector
gatewayAPI.hostNetwork.nodes.matchLabels was 'gateway: "true"' (matches
siriussec only), while envoy.nodeSelector is
'node-role.kubernetes.io/gateway: "true"' (matches linode only). The
Gateway listener was scheduled for host-network on a node where Envoy
does not run, so no 8080 listener was ever programmed and the public
Gateway had no dataplane on linode.

Align the hostNetwork selector to the Envoy's actual node label so the
listener binds on linode.
2026-09-15 01:13:18 -04:00
Sirius DevOps
6fd2767ca3
fix: bump Cilium to 1.20.1 — 1.19.7 still crashes on TLSRoute v1alpha2
Cilium 1.19.x operator unconditionally registers a field indexer for
TLSRoute/v1alpha2 and treats the error as fatal. The cluster's TLSRoute
CRD (standard channel from Gateway API v1.5.x) marks v1alpha2 as not
served. Cilium 1.20+ (PR #45251) fixed the indexer to not require
v1alpha2 served. Chart bump: 1.19.7 -> 1.20.1.
2026-09-15 00:29:44 -04:00
Sirius DevOps
e2f1a260c9
fix: use HelmRelease v2 API (cluster only serves v2, not v2beta2) 2026-09-15 00:26:20 -04:00
Sirius DevOps
3eadc3acda
feat: add Cilium HelmRelease to Flux-managed infrastructure
Wires ../networking/cilium (HelmRelease + HelmRepository + values
ConfigMap) into the infrastructure kustomization so Flux deploys
Cilium 1.19.7 and upgrades the crashing 1.18.13 operator.
2026-09-15 00:23:47 -04:00
Sirius DevOps
6a35d81fe9
feat: add infrastructure Kustomization for Flux to watch infrastructure/home 2026-09-15 00:21:29 -04:00
Sirius DevOps
9b93278760
feat: internal-only Cilium Gateway on WG overlay for private services
Add a second Gateway listening on port 8081, namespace-scoped to
`internal`. Only HTTPRoutes in the `internal` namespace can attach,
so grafana and other private services are not reachable from public
HTTPRoutes.

The listener is on the WG overlay (siriussec 10.10.0.2 + linode
10.10.0.5, both `gateway=true`). No public IP, no LAN route — only
peers on 10.10.0.0/24 can reach it.

Also wires the new `internal` gateway into Flux via
infrastructure/home/kustomization.yaml.
2026-09-15 00:18:58 -04:00
a2b9256d97 Merge pull request 'fix: upgrade Cilium to 1.19.7 to resolve operator CrashLoopBackOff' (#1) from fix/cilium-operator-crash into master
Reviewed-on: #1
2026-09-15 04:08:04 +00:00
Sirius DevOps
9209ea54a7
fix: upgrade Cilium to 1.19.7 to resolve operator CrashLoopBackOff
Cilium operator 1.18.13 crashes on startup with:
  no matches for kind TLSRoute in version gateway.networking.k8s.io/v1alpha2

The TLSRoute CRD on the cluster only has v1 (no v1alpha2). Cilium 1.19+
fixes the gateway API field indexer to work with the v1/v1alpha3 TLSRoute
layout. Fixes the 3-day operator outage.
2026-09-15 00:08:05 -04:00
Sirius DevOps
c03c23bc4c
cillium gateway config switch to linode node as gateway 2026-09-14 23:47:48 -04:00
Flux
75a0e56606 Add Flux sync manifests 2026-09-14 23:43:41 -04:00
Flux
0a075709d1 Add Flux v2.9.5 component manifests 2026-09-14 23:43:38 -04:00
Sirius DevOps
4b0303a58d forgejo arm64 runner: capacity 1
ci.yml builds every test job's Rust target into one shared named volume
(onionwire-target-ci at /target). Two jobs writing it concurrently clobber each
other's freshly-linked binaries, which then fail with 'could not execute
process ... (never executed) Permission denied (os error 13)'. Forgejo's
concurrency.group did not serialize two same-group runs (446+447 overlapped),
so capacity 1 is the enforced serializer. Cleared the corrupted volume.
2026-09-12 01:48:10 -04:00
Sirius DevOps
a3a2c600d6 forgejo amd64 runner: capacity 1 and dockerd --mtu=1420
Two concurrent x86_64 builds on the dind daemon made the second one's egress
fail (apt looping on Ign: for Debian InRelease) while a single build on the
same daemon succeeded. Serialize the amd64 runner, and match the docker bridge
MTU to the pod's 1420 so containers stop assuming a 1500-byte path.
2026-09-12 01:25:51 -04:00
Sirius DevOps
62392be60a forgejo arm64 runner: drop container.docker_host
Setting docker_host makes the runner bind the docker socket into the job
container itself, colliding with the explicit
-v /var/run/docker.sock:/var/run/docker.sock in container.options, so every
job died at create with 'Duplicate mount point: /var/run/docker.sock'.
Restores the config the Pi compose runner ran green for months.
2026-09-11 23:05:36 -04:00
Sirius DevOps
42509aacd9
amd64 runner: unix-socket dind only, no TCP 2375. 2026-09-11 22:37:09 -04:00
Sirius DevOps
9a3ed8311f
Bind T480 dind API to localhost only. 2026-09-11 22:34:49 -04:00
Sirius DevOps
455c85b01c
Split Forgejo runners: arm64 on rpi, amd64 dind on siriussec.
Pi keeps host Docker and labels docker-arm64/arm64/docker.
T480 runs privileged docker:dind; jobs use docker-amd64/amd64.
2026-09-11 22:34:33 -04:00
Sirius DevOps
8783d77d5e
Give the k8s Forgejo runner docker.sock access as root+docker gid. 2026-09-11 22:25:44 -04:00