Files
infra-k8/deploy/k8s/00-config.yaml
T
Noel Sabia 5b199f8fe3 feat: harden Gate 1 manifests and runbook
- add read-only make gate1-check: permissions, guardrails, dry-run, Secret keys
- set numeric runAsUser/runAsGroup (SKE non-numeric user caveat), pin cloudflared and use HTTP/2
- align ML env with PULSECAST_* and wire CONTROL_TOKEN for API/ML training proxy
- fix service worktree paths and smoke.sh executable bit
- pin k6 v2.0.0 for xk6-sse, fix closed-connection metric and initial scenario latency
- rewrite docs/deploy.md as an exact copy-paste Gate 1 checklist
2026-11-14 05:10:41 +01:00

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"