2026-10-18 02:52:08 -04:00
|
|
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
|
|
|
kind: Kustomization
|
|
|
|
|
resources:
|
|
|
|
|
- namespace.yaml
|
|
|
|
|
- deployment.yaml
|
2026-10-18 16:00:10 -04:00
|
|
|
- deployment-api.yaml
|
2026-10-19 03:30:03 -04:00
|
|
|
- deployment-portal.yaml
|
2026-11-05 13:07:26 -05:00
|
|
|
- deployment-blog.yaml
|
2026-11-03 18:16:03 +00:00
|
|
|
- deployment-portal-gate.yaml
|
|
|
|
|
- configmap-portal-gate.yaml
|
2026-10-18 02:52:08 -04:00
|
|
|
- service.yaml
|
2026-10-18 16:00:10 -04:00
|
|
|
- service-api.yaml
|
2026-10-19 03:30:03 -04:00
|
|
|
- service-portal.yaml
|
2026-11-05 13:07:26 -05:00
|
|
|
- service-blog.yaml
|
2026-11-03 18:16:03 +00:00
|
|
|
- service-portal-gate.yaml
|
2026-10-18 15:26:00 -04:00
|
|
|
- httproute.yaml
|
2026-10-19 03:03:09 -04:00
|
|
|
- cluster.yaml
|
2026-10-27 01:32:20 -04:00
|
|
|
- podmonitor.yaml
|
2026-11-03 12:46:27 -05:00
|
|
|
- pvc-leadgen.yaml
|
|
|
|
|
- cronjob-leadgen.yaml
|
|
|
|
|
- cronjob-leadgen-ncda.yaml
|
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
|
|
|
# exec-only RBAC so forgejo/cluster-backup can pg_dump this namespace's CNPG
|
|
|
|
|
# cluster (portal) without copying a database password across namespaces.
|
|
|
|
|
- backup-exec-rbac.yaml
|
apps(backup): cover the remaining stateful gaps off-host
Four pieces of state were still only on the machine they run on. All four now
land on the Linode over the WireGuard mesh, in the same /root/cluster-backup
tree (or /root/pihost-backup for the Pi) with the same manifest/sha256 habit:
* monitoring/kube-prometheus-stack-grafana — new CronJob `monitoring/grafana-backup`.
The image is -distroless (no shell), so this mounts the PVC read-write and
takes a consistent copy with the sqlite backup API (PRAGMA integrity_check on
the copy), then streams it: grafana/grafana-<stamp>.db, keep 14.
* osint/osint-db — plain Postgres Deployment, so neither the CNPG primary lookup
nor CNPG_TARGETS reaches it. `forgejo/cluster-backup` gains a PG_TARGETS loop
that pg_dump -Fc's inside the pod using its own POSTGRES_USER/POSTGRES_DB
(exec-only RBAC in apps/base/osint/), sha256 checked on both sides.
* sirius-growth/sgs-leadgen-data — new CronJob `sirius-growth/leadgen-backup`,
link-dest snapshot mirror, keep 7.
* Pi /etc/wireguard + wgportal sqlite — infrastructure/wireguard/backup/,
nightly systemd timer -> [email protected]:/root/pihost-backup, keep 14.
Each tree carries its own retention, so adding artifacts cannot crowd the
Linode. Docs §8/§8.1/§8.2 record coverage, the accepted gaps (Prometheus TSDB,
camera frames, runner scratch) and the restore procedure — including the
TimescaleDB pre/post-restore calls osint needs.
2026-11-19 17:14:36 -05:00
|
|
|
# Snapshot mirror of the lead-gen capture PVC to the Linode.
|
|
|
|
|
- leadgen-backup.yaml
|