From 274f185b3b2ed38fd6f1f6eca0515994a2e7b2e4 Mon Sep 17 00:00:00 2001 From: buenosairesam Date: Wed, 15 Apr 2026 21:52:32 -0300 Subject: [PATCH] add edge deployment pipeline and Kind 0.0.0.0 binding --- ctrl/edge/.env.example | 4 ++++ ctrl/edge/docker-compose.yml | 21 +++++++++++++++++++++ ctrl/k8s/kind-config.yaml | 2 +- ctrl/nginx.conf | 4 ++++ 4 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 ctrl/edge/.env.example create mode 100644 ctrl/edge/docker-compose.yml diff --git a/ctrl/edge/.env.example b/ctrl/edge/.env.example new file mode 100644 index 0000000..a2696d9 --- /dev/null +++ b/ctrl/edge/.env.example @@ -0,0 +1,4 @@ +LLM_PROVIDER=groq +GROQ_API_KEY=gsk_... +GROQ_MODEL=llama-3.3-70b-versatile +DEFAULT_SCENARIO=weather_disruption_ord diff --git a/ctrl/edge/docker-compose.yml b/ctrl/edge/docker-compose.yml new file mode 100644 index 0000000..12ed046 --- /dev/null +++ b/ctrl/edge/docker-compose.yml @@ -0,0 +1,21 @@ +services: + nova-api: + image: registry.mcrn.ar/unt/api:latest + container_name: nova-api + restart: unless-stopped + env_file: .env + networks: + - gateway + + nova-ui: + image: registry.mcrn.ar/unt/ui:latest + container_name: nova-ui + restart: unless-stopped + depends_on: + - nova-api + networks: + - gateway + +networks: + gateway: + external: true diff --git a/ctrl/k8s/kind-config.yaml b/ctrl/k8s/kind-config.yaml index 8d2b54d..7c316d3 100644 --- a/ctrl/k8s/kind-config.yaml +++ b/ctrl/k8s/kind-config.yaml @@ -7,7 +7,7 @@ nodes: # UI — entry point for the app - containerPort: 30040 hostPort: 8040 - listenAddress: "127.0.0.1" + listenAddress: "0.0.0.0" protocol: TCP # Langfuse observability - containerPort: 30030 diff --git a/ctrl/nginx.conf b/ctrl/nginx.conf index 466104a..68f0725 100644 --- a/ctrl/nginx.conf +++ b/ctrl/nginx.conf @@ -22,6 +22,10 @@ server { proxy_pass http://api:8000; } + location /health { + proxy_pass http://api:8000; + } + location /ws/ { proxy_pass http://api:8000; proxy_http_version 1.1;