From bf1682dc9b2b92f7eda2c922b50c891fa405ab95 Mon Sep 17 00:00:00 2001 From: Story Crater Bot <19826264+Riotpiaole@users.noreply.github.com> Date: Sun, 16 Aug 2026 10:29:40 -0700 Subject: [PATCH] fix(agent-pod): route /run and /sessions through Kong too Ingress only covered /console -- agent-console run got a 404 hitting /run since Kong had no route for it. Same Service, same port, just more paths on the one Ingress. --- k8s/apps/agent-pod/console-ingress.yaml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/k8s/apps/agent-pod/console-ingress.yaml b/k8s/apps/agent-pod/console-ingress.yaml index 21abcde..afc8229 100644 --- a/k8s/apps/agent-pod/console-ingress.yaml +++ b/k8s/apps/agent-pod/console-ingress.yaml @@ -1,4 +1,5 @@ -# Exposes agent-hub at api.riotpiao.com/console. +# Exposes agent-hub at api.riotpiao.com/console (WebSocket) and /run +# (trigger a new session) -- both are routes on the same hub.js service. apiVersion: networking.k8s.io/v1 kind: Ingress metadata: @@ -19,3 +20,17 @@ spec: name: agent-hub port: number: 9090 + - path: /run + pathType: Prefix + backend: + service: + name: agent-hub + port: + number: 9090 + - path: /sessions + pathType: Prefix + backend: + service: + name: agent-hub + port: + number: 9090