fix(dashboard): align port to 3000 and probes to root path
- containerPort: 3000 (matches Next.js default + Dockerfile ENV PORT=3000) - All probes (startup/liveness/readiness): path (Next.js serves root when ready) - Service targetPort: 3000 Fixes 'not ready' and 'can't reach it' (previous mismatch with 8000 + /api/health which didn't exist). Live manifests updated (source of truth).
This commit is contained in:
parent
a07259cd25
commit
d002a7896b
2 changed files with 10 additions and 10 deletions
|
|
@ -29,7 +29,7 @@ spec:
|
||||||
image: ghcr.io/sirius0xdev/trading-dashboard:latest
|
image: ghcr.io/sirius0xdev/trading-dashboard:latest
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8000
|
- containerPort: 3000
|
||||||
name: http
|
name: http
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
|
|
@ -60,20 +60,20 @@ spec:
|
||||||
key: password
|
key: password
|
||||||
startupProbe:
|
startupProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /api/health
|
path: /
|
||||||
port: 8000
|
port: 3000
|
||||||
initialDelaySeconds: 15
|
initialDelaySeconds: 5
|
||||||
periodSeconds: 10
|
periodSeconds: 10
|
||||||
failureThreshold: 30
|
failureThreshold: 30
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /api/health
|
path: /
|
||||||
port: 8000
|
port: 3000
|
||||||
initialDelaySeconds: 30
|
initialDelaySeconds: 15
|
||||||
periodSeconds: 30
|
periodSeconds: 30
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /api/health
|
path: /
|
||||||
port: 8000
|
port: 3000
|
||||||
initialDelaySeconds: 5
|
initialDelaySeconds: 5
|
||||||
periodSeconds: 10
|
periodSeconds: 10
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,6 @@ spec:
|
||||||
app: trading-dashboard
|
app: trading-dashboard
|
||||||
ports:
|
ports:
|
||||||
- port: 80
|
- port: 80
|
||||||
targetPort: 8000
|
targetPort: 3000
|
||||||
name: http
|
name: http
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue