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:
parent
ae1573d6e8
commit
2e8e8ee3eb
1 changed files with 6 additions and 6 deletions
|
|
@ -37,7 +37,7 @@ spec:
|
|||
- name: pangolin
|
||||
image: fosrl/pangolin:1.21.0
|
||||
ports:
|
||||
- containerPort: 3001
|
||||
- containerPort: 3002
|
||||
name: http
|
||||
env:
|
||||
- name: PANGOLIN_URL
|
||||
|
|
@ -85,7 +85,7 @@ spec:
|
|||
livenessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: 3001
|
||||
port: 3002
|
||||
initialDelaySeconds: 60
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 5
|
||||
|
|
@ -93,7 +93,7 @@ spec:
|
|||
readinessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: 3001
|
||||
port: 3002
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 5
|
||||
timeoutSeconds: 3
|
||||
|
|
@ -117,8 +117,8 @@ spec:
|
|||
selector:
|
||||
app: pangolin
|
||||
ports:
|
||||
- port: 3001
|
||||
targetPort: 3001
|
||||
- port: 3002
|
||||
targetPort: 3002
|
||||
protocol: TCP
|
||||
---
|
||||
# Pangolin Ingress
|
||||
|
|
@ -146,4 +146,4 @@ spec:
|
|||
service:
|
||||
name: pangolin
|
||||
port:
|
||||
number: 3001
|
||||
number: 3002
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue