Cloudflare Universal SSL covers *.noelsabia.dev only one level deep. api.pulse.noelsabia.dev is two levels and fails the certificate check. - switch the API base/SSE URLs to api-pulse.noelsabia.dev - update smoke, k6, runbook, and failure drills - record the verified DNS/certificate diagnosis and local cache flush
71 lines
1.9 KiB
YAML
71 lines
1.9 KiB
YAML
# Non-secret configuration for PulseCast.
|
|
# Namespace-scoped only. Secrets are created by the human, never committed.
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: pulsecast-shared
|
|
namespace: fch26-onemanarmy
|
|
labels:
|
|
app.kubernetes.io/part-of: pulsecast
|
|
data:
|
|
PUBLIC_WEB_URL: "https://pulse.noelsabia.dev"
|
|
PUBLIC_API_URL: "https://api-pulse.noelsabia.dev"
|
|
API_INTERNAL_URL: "http://api:8080"
|
|
ML_INTERNAL_URL: "http://ml:8000"
|
|
CORS_ALLOWED_ORIGINS: "https://pulse.noelsabia.dev,http://localhost:3000"
|
|
---
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: web-config
|
|
namespace: fch26-onemanarmy
|
|
labels:
|
|
app.kubernetes.io/name: web
|
|
app.kubernetes.io/part-of: pulsecast
|
|
data:
|
|
NODE_ENV: "production"
|
|
HOST: "0.0.0.0"
|
|
PORT: "3000"
|
|
NUXT_TELEMETRY_DISABLED: "1"
|
|
TMPDIR: "/tmp"
|
|
NUXT_PUBLIC_API_BASE: "https://api-pulse.noelsabia.dev"
|
|
NUXT_API_INTERNAL_BASE: "http://api:8080"
|
|
NUXT_PUBLIC_SSE_URL: "https://api-pulse.noelsabia.dev/api/stream"
|
|
---
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: api-config
|
|
namespace: fch26-onemanarmy
|
|
labels:
|
|
app.kubernetes.io/name: api
|
|
app.kubernetes.io/part-of: pulsecast
|
|
data:
|
|
PORT: "8080"
|
|
DATA_DIR: "/app/data"
|
|
FASTAPI_URL: "http://ml:8000"
|
|
ML_TIMEOUT: "1.5s"
|
|
SSE_HEARTBEAT: "15s"
|
|
---
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: ml-config
|
|
namespace: fch26-onemanarmy
|
|
labels:
|
|
app.kubernetes.io/name: ml
|
|
app.kubernetes.io/part-of: pulsecast
|
|
data:
|
|
# The image CMD binds 0.0.0.0:8000; PORT documents the contract.
|
|
PORT: "8000"
|
|
# These are the names pulsecast.config actually reads. The model and JSON
|
|
# artifacts are baked into the image; only models/uploads are writable.
|
|
PULSECAST_ROOT: "/app"
|
|
PULSECAST_ARTIFACTS: "/app/artifacts"
|
|
PULSECAST_WEATHER: "/app/artifacts"
|
|
PULSECAST_MODELS: "/tmp/pulsecast/models"
|
|
PULSECAST_UPLOADS: "/tmp/pulsecast/uploads"
|
|
TMPDIR: "/tmp"
|
|
PYTHONDONTWRITEBYTECODE: "1"
|
|
PYTHONUNBUFFERED: "1"
|