ai-code-battle/docs/plan
jedarden 930f0263c2 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>
2026-03-24 23:24:22 -04:00
..
.gitkeep Add docs directory structure with research and plan subdirectories 2026-03-23 20:47:58 -04:00
plan.md Restore hybrid architecture: Cloudflare Pages + R2 for web, K8s for compute 2026-03-24 23:24:22 -04:00