Files
infra-k8/deploy/k8s/00-config.yaml
T
Noel Sabia b98a1bab42
infra-ci / manifests (push) Failing after 4s
infra-ci / manifests (pull_request) Failing after 3s
feat: prepare v1.1 deploy and presenter load test
- build and push v1.1 images from the service main worktrees
- switch manifests to :v1.1; add web control Secret refs
- configure API BOOTSTRAP_REFRESH=60s and remove unused DATA_DIR
- add k6 presenter scenario with a mid-run control POST
- require control credentials in make load; update runbook and drills
2026-11-14 08:00:58 +01:00

73 lines
2.0 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"
FASTAPI_URL: "http://ml:8000"
# v1.1 fetches FastAPI /bootstrap at startup and every BOOTSTRAP_REFRESH;
# there is no baked data directory and no DATA_DIR env.
BOOTSTRAP_REFRESH: "60s"
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"