fix(llm): make API URL configurable for Kubernetes internal service
ci / test (push) Successful in 1m51s

Issue: Orchestrator pods failing with 'api.riotpiao.com is unreachable'
- URL was hardcoded to external hostname
- Inside Kubernetes cluster, needs to use internal service DNS

Changes:
- Make LocalLLMBaseURL read from LOCAL_LLM_BASE_URL env var
- Default to 'https://api.riotpiao.com' for external deployments
- Update orchestrator-job.yaml to pass internal service: http://api-gateway.api:8080
- Update worker-deployment.yaml to use same internal service URL

This allows pods to reach the LLM API via Kubernetes DNS without external network access.
This commit is contained in:
Test
2026-08-31 14:49:30 -07:00
parent 9b9e99da3e
commit db71919207
4 changed files with 20 additions and 7 deletions
+4 -2
View File
@@ -13,8 +13,8 @@ spec:
labels:
app: poimen-worker
annotations:
git-commit: "166674d" # ✅ Updated on each push, triggers rolling restart
deployment-date: "2026-08-30"
git-commit: "74a8f2e8" # ✅ Updated on each push, triggers rolling restart
deployment-date: "2026-08-31"
spec:
containers:
- name: worker
@@ -51,6 +51,8 @@ spec:
secretKeyRef:
name: poimen-secrets
key: ANTHROPIC_API_KEY
- name: LOCAL_LLM_BASE_URL
value: "http://api-gateway.api:8080"
resources:
requests:
memory: "512Mi"