From dae46cecac7b5372a019ce547b7929672990e94a Mon Sep 17 00:00:00 2001 From: CTO Agent Date: Sat, 1 Aug 2026 14:44:19 +0000 Subject: [PATCH] Fix Pangolin API routing - expose port 3000 for API endpoints The Pangolin setup was failing with 404 on /api/v1/auth/set-server-admin because the ingress was routing all traffic to port 3002 (Web UI), but API endpoints are served by a separate API server on port 3000. Changes: - Added port 3000 (api) to deployment container ports - Updated service to expose both port 3000 (api) and 3002 (http) - Added /api path to ingress routing to port 3000 - Kept / path routing to port 3002 for Web UI This allows the browser to make API calls to /api/* which will now be routed to the API server, fixing the 404 error. Co-Authored-By: Paperclip --- apps/pangolin/pangolin-deployment.yaml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/apps/pangolin/pangolin-deployment.yaml b/apps/pangolin/pangolin-deployment.yaml index e4875f1..15b03e9 100644 --- a/apps/pangolin/pangolin-deployment.yaml +++ b/apps/pangolin/pangolin-deployment.yaml @@ -37,6 +37,8 @@ spec: - name: pangolin image: fosrl/pangolin:1.21.1 ports: + - containerPort: 3000 + name: api - containerPort: 3002 name: http env: @@ -117,7 +119,12 @@ spec: selector: app: pangolin ports: - - port: 3002 + - name: api + port: 3000 + targetPort: 3000 + protocol: TCP + - name: http + port: 3002 targetPort: 3002 protocol: TCP --- @@ -140,6 +147,13 @@ spec: - host: pangolin.basicstack.de http: paths: + - path: /api + pathType: Prefix + backend: + service: + name: pangolin + port: + number: 3000 - path: / pathType: Prefix backend: