monitoring/grafana-backup, forgejo/cluster-backup and sirius-growth/leadgen-backup all ran `apk add --no-cache rsync openssh-client` at container start. Every night that dialled dl-cdn.alpinelinux.org (Fastly anycast 151.101.x.132:443), which is what `egress-new-dst` kept reporting, and made the backups depend on the public internet at 03:00 UTC. - image: forgejo.siriusdevops.com/sirius/backup-tools, built in CI from python:3.12-alpine (pinned by digest) + rsync + openssh-client + bash + kubectl v1.36.4 (release sha256 verified at build). Pinned by digest in all three CronJobs, no apk in any backup path. - egress: CiliumNetworkPolicy per backup pod — cluster DNS and 10.10.0.5:22 for all three, plus kube-apiserver 6443/443 for cluster-backup only, with an explicit deny for `world` (Cilium unions namespace policies, so the allow list alone would not restrict a pod inside `forgejo`/`sirius-growth`). - monitoring gains the registry pull secret it never needed before; the job now keeps imagePullSecrets: forgejo-pull (SOPS-encrypted in git). Schedules, retention, destination paths, entrypoints and RBAC are unchanged.
47 lines
1.8 KiB
YAML
47 lines
1.8 KiB
YAML
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
kind: Kustomization
|
|
resources:
|
|
- namespace.yaml
|
|
- deployment.yaml
|
|
- deployment-api.yaml
|
|
- deployment-portal.yaml
|
|
- deployment-blog.yaml
|
|
- deployment-portal-gate.yaml
|
|
- configmap-portal-gate.yaml
|
|
- service.yaml
|
|
- service-api.yaml
|
|
- service-portal.yaml
|
|
- service-blog.yaml
|
|
- service-portal-gate.yaml
|
|
- httproute.yaml
|
|
# Default-deny ingress+egress + the namespace allow list (audit F3 / t_fed52919).
|
|
- networkpolicy.yaml
|
|
# Egress lockdown for the leadgen-backup pod: DNS + 10.10.0.5:22 only. The
|
|
# allow list above cannot be narrowed per pod, so the deny for `world` in
|
|
# this policy is what applies to the job (card t_9d0428d8).
|
|
- networkpolicy-backup.yaml
|
|
# The WAL archive store must exist before the Cluster references it.
|
|
- objectstore-portal-wal.yaml
|
|
- cluster.yaml
|
|
- scheduled-backup.yaml
|
|
- podmonitor.yaml
|
|
- pvc-leadgen.yaml
|
|
- cronjob-leadgen.yaml
|
|
- cronjob-leadgen-ncda.yaml
|
|
# 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
|
|
# Snapshot mirror of the lead-gen capture PVC to the Linode.
|
|
- leadgen-backup.yaml
|
|
# Secrets, SOPS/age-encrypted in git. Flux decrypts them (the `apps`
|
|
# Kustomization carries a decryption block; key = flux-system/sops-age).
|
|
# Never add a plaintext Secret next to these — see docs/secrets-sops.md.
|
|
- secret-forgejo-pull.sops.yaml
|
|
- secret-portal-wal-s3.sops.yaml
|
|
- secret-sirius-growth-blog-app.sops.yaml
|
|
- secret-sirius-growth-blog-s3.sops.yaml
|
|
- secret-sirius-growth-contact.sops.yaml
|
|
- secret-sirius-growth-portal-app.sops.yaml
|
|
- secret-sirius-growth-portal-db.sops.yaml
|
|
- secret-sirius-growth-portal-s3.sops.yaml
|
|
- secret-cluster-backup-ssh.sops.yaml
|