Restore hybrid architecture: Cloudflare Pages + R2 for web, K8s for compute
Corrected the full-K8s migration — the static site belongs on Cloudflare Pages, not Nginx in K8s. The architecture is now: - Cloudflare Pages: SPA + pre-computed JSON indexes (deployed by K8s index builder via wrangler every ~90 min) - Cloudflare R2: replays, per-match metadata, evolution live.json, thumbnails, bot cards (uploaded by K8s workers via S3 API) - apexalgo-iad K8s: Go API (Traefik ingress), PostgreSQL (CNPG), Valkey (job queue), match workers, strategy bots, evolver, index builder Browser loads SPA from Pages, replays from R2, calls Go API on K8s. No Nginx pod, no PersistentVolume for web data. R2 is the data bus between K8s agents and the Cloudflare-served website. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
8ee9944f2a
commit
930f0263c2
1 changed files with 432 additions and 322 deletions
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue