Skip to main content

Environments

EnvURLRuns onPath in
PR previewprXXX.insfocus.comDev MicroK8sCloudflare Access → Tunnel → HAProxy → K8s
QAqa.insfocus.comMicroK8sCloudflare Tunnel → K8s (no HAProxy)
Prod—Prod Kubernetes host—
AI devai-portal-dev.insfocus.com, ai-api-dev.insfocus.comDev MicroK8s, namespace ai-devCloudflare Access → Tunnel → K8s nginx

Configuration​

  • insfocus.com has a proxied wildcard *.insfocus.com A record pointing at the HQ reverse proxy, not the cluster.
  • The insfocus_hq Cloudflare 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.com hostname 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/insfocus loads slowly (large JS bundle ~22 s). Cause found 2026-11-17: cluster is fast (ingress → pod in 15 ms). Bottleneck is the cloudflared tunnel / office uplink. Assets also leave the cluster uncompressed.

Open​

  • QA slowness fix (tunnel/uplink, compression, caching) — in progress.