From fe24a206de8bda9e0a6086e1271c963280b88712 Mon Sep 17 00:00:00 2001 From: Story Crater Bot <19826264+Riotpiaole@users.noreply.github.com> Date: Sun, 16 Aug 2026 08:16:33 -0700 Subject: [PATCH] feat(agent-pod): expose agent-hub at api.riotpiao.com/console Kong route to the agent-hub Service so agent-console can attach over the existing gateway instead of kubectl port-forward. --- k8s/apps/agent-pod/console-ingress.yaml | 21 +++++++++++++++++++++ k8s/apps/agent-pod/kustomization.yaml | 1 + 2 files changed, 22 insertions(+) create mode 100644 k8s/apps/agent-pod/console-ingress.yaml diff --git a/k8s/apps/agent-pod/console-ingress.yaml b/k8s/apps/agent-pod/console-ingress.yaml new file mode 100644 index 0000000..21abcde --- /dev/null +++ b/k8s/apps/agent-pod/console-ingress.yaml @@ -0,0 +1,21 @@ +# Exposes agent-hub at api.riotpiao.com/console. +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: console + namespace: agent-pod + annotations: + konghq.com/strip-path: "false" +spec: + ingressClassName: kong + rules: + - host: api.riotpiao.com + http: + paths: + - path: /console + pathType: Prefix + backend: + service: + name: agent-hub + port: + number: 9090 diff --git a/k8s/apps/agent-pod/kustomization.yaml b/k8s/apps/agent-pod/kustomization.yaml index c0dba55..eb77cf7 100644 --- a/k8s/apps/agent-pod/kustomization.yaml +++ b/k8s/apps/agent-pod/kustomization.yaml @@ -7,3 +7,4 @@ resources: - hub-configmap.yaml - agent-run-configmap.yaml - hub-service.yaml + - console-ingress.yaml