homek8s/apps/base/forgejo
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Lance Walters b698f23d4f apps(backup): nightly Forgejo data + CNPG dumps to the Linode, and prove a restore
Nothing on this platform backed up Forgejo or the CloudNativePG databases;
docs/cluster-overview.md had claimed both must be backed up for months.

New CronJob forgejo/cluster-backup (37 2 * * * UTC, Forbid) streams to
[email protected]:/root/cluster-backup over the WireGuard mesh:

  * forgejo-data PVC mirrored with rsync --link-dest (snapshot per night,
    hardlinked, readonly PVC mount, transient upload spools excluded, rsync
    exit 24 tolerated because Forgejo is live while it runs);
  * pg_dump -Fc from inside each CNPG primary (local socket, no DB password
    in git) for forgejo/pg and sirius-growth/portal, sha256-verified on both
    sides before the .part file is renamed.

Nothing is staged on siriussec (83% full, DiskPressure hazard); the job has
an ephemeral-storage cap of 1Gi to make that structural. Job lives in ns
forgejo because a PVC cannot be mounted cross-namespace; the portal dump uses
exec-only RBAC declared in apps/base/sirius-growth/backup-exec-rbac.yaml.

Only secret is forgejo/cluster-backup-ssh (out of band, not in git):
from=-restricted ed25519 key on the Linode, host key pinned.

docs/cluster-overview.md: §8.1 coverage + honest gaps, §8.2 restore runbook,
live PVC/disk numbers corrected.
2026-11-19 17:01:05 -05:00
..
cluster-backup.yaml apps(backup): nightly Forgejo data + CNPG dumps to the Linode, and prove a restore 2026-11-19 17:01:05 -05:00
cluster.yaml monitoring: custom Forgejo runner, CNPG and workload dashboards from git 2026-10-27 01:32:20 -04:00
deployment.yaml cillium gateway config switch to linode node as gateway 2026-09-14 23:47:48 -04:00
httproute.yaml Add Forgejo app and CNPG cluster (1 replica). 2026-09-11 00:08:31 -04:00
kustomization.yaml apps(backup): nightly Forgejo data + CNPG dumps to the Linode, and prove a restore 2026-11-19 17:01:05 -05:00
namespace.yaml Add Forgejo app and CNPG cluster (1 replica). 2026-09-11 00:08:31 -04:00
pg-actions-queries.yaml monitoring: custom Forgejo runner, CNPG and workload dashboards from git 2026-10-27 01:32:20 -04:00
podmonitor.yaml monitoring: custom Forgejo runner, CNPG and workload dashboards from git 2026-10-27 01:32:20 -04:00
prune-cronjob.yaml monitoring: replace the dead kubelet_volume_stats alerts with runner-scoped disk rules 2026-10-27 02:07:07 -04:00
pvc.yaml Add Forgejo app and CNPG cluster (1 replica). 2026-09-11 00:08:31 -04:00
runner-amd64.yaml ci(forgejo): let the amd64 dind daemon push to the in-cluster registry 2026-11-17 15:14:06 -05:00
runner-arm64.yaml apps(forgejo): clear stale dind pid on start so runner restarts self-heal 2026-11-16 20:41:20 -05:00
runner-configmap.yaml ci(forgejo): give amd64 job containers the docker CLI 2026-11-17 15:14:06 -05:00
runner-deploy-arm64.yaml forgejo runners(arm64): dind registries need --insecure-registry for the Pi's WG address 2026-10-27 02:57:48 -04:00
runner-dind-storage.yaml forgejo runners(arm64): run both arm64 runners as in-cluster dind pods 2026-10-27 02:03:11 -04:00
service.yaml Add Forgejo app and CNPG cluster (1 replica). 2026-09-11 00:08:31 -04:00