Fix Pangolin health probes: route to Web UI port 3002 instead of Internal API port 3001

Pangolin runs three servers:
- Dashboard API on port 3000
- Internal API on port 3001
- Web UI on port 3002

The current configuration was routing traffic to port 3001 (Internal API), which
returns 404 for the root path, causing health probe failures and restart loops.

Changes:
- Update containerPort from 3001 to 3002
- Update livenessProbe to check port 3002
- Update readinessProbe to check port 3002
- Update Service to expose port 3002
- Update Ingress to route to port 3002

This allows health probes to pass (port 3002 returns 200 for /) and routes
web traffic to the correct Web UI server.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
CTO Agent 2026-07-26 17:16:03 +00:00
parent ae1573d6e8
commit 2e8e8ee3eb

View file

@ -37,7 +37,7 @@ spec:
- name: pangolin - name: pangolin
image: fosrl/pangolin:1.21.0 image: fosrl/pangolin:1.21.0
ports: ports:
- containerPort: 3001 - containerPort: 3002
name: http name: http
env: env:
- name: PANGOLIN_URL - name: PANGOLIN_URL
@ -85,7 +85,7 @@ spec:
livenessProbe: livenessProbe:
httpGet: httpGet:
path: / path: /
port: 3001 port: 3002
initialDelaySeconds: 60 initialDelaySeconds: 60
periodSeconds: 10 periodSeconds: 10
timeoutSeconds: 5 timeoutSeconds: 5
@ -93,7 +93,7 @@ spec:
readinessProbe: readinessProbe:
httpGet: httpGet:
path: / path: /
port: 3001 port: 3002
initialDelaySeconds: 30 initialDelaySeconds: 30
periodSeconds: 5 periodSeconds: 5
timeoutSeconds: 3 timeoutSeconds: 3
@ -117,8 +117,8 @@ spec:
selector: selector:
app: pangolin app: pangolin
ports: ports:
- port: 3001 - port: 3002
targetPort: 3001 targetPort: 3002
protocol: TCP protocol: TCP
--- ---
# Pangolin Ingress # Pangolin Ingress
@ -146,4 +146,4 @@ spec:
service: service:
name: pangolin name: pangolin
port: port:
number: 3001 number: 3002