Environments
| Env | URL | Runs on | Path in |
|---|---|---|---|
| PR preview | prXXX.insfocus.com | Dev MicroK8s | Cloudflare Access → Tunnel → HAProxy → K8s |
| QA | qa.insfocus.com | MicroK8s | Cloudflare Tunnel → K8s (no HAProxy) |
| Prod | — | Prod Kubernetes host | — |
| AI dev | ai-portal-dev.insfocus.com, ai-api-dev.insfocus.com | Dev MicroK8s, namespace ai-dev | Cloudflare Access → Tunnel → K8s nginx |
- PR previews: see PR preview environments.
- AI dev: see AI platform deployment.
Configuration
insfocus.comhas a proxied wildcard*.insfocus.comA record pointing at the HQ reverse proxy, not the cluster.- The
insfocus_hqCloudflare Tunnel has a*.insfocus.com→ k8s nginx rule. A hostname uses it only if its DNS is a proxied CNAME to the tunnel. - Dev SQL access: CloudBeaver at
cloudbeaver.dev.corp.insfocus.com.
Decisions
- Backfill — QA goes straight to Kubernetes, without HAProxy.
- Backfill — CloudBeaver as the web SQL editor for dev/PR SQLite files.
Gotchas
- Problem: new
*.insfocus.comhostname for a K8s ingress returns 404; nothing in the ingress log. Cause: no DNS record, so the wildcard A record sends it to the HQ reverse proxy. Fix: add a proxied CNAME to the tunnel (found 2026-08-22). - Problem:
qa.insfocus.com/insfocusloads slowly (large JS bundle ~22 s). Cause found 2026-11-17: cluster is fast (ingress → pod in 15 ms). Bottleneck is thecloudflaredtunnel / office uplink. Assets also leave the cluster uncompressed.
Open
- QA slowness fix (tunnel/uplink, compression, caching) — in progress.