- 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).
18 lines
393 B
YAML
18 lines
393 B
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: trading-dashboard-svc
|
|
namespace: customer1
|
|
annotations:
|
|
tailscale.com/expose: "true"
|
|
tailscale.com/hostname: "trading-dashboard"
|
|
tailscale.com/tags: "tag:k8s-operator"
|
|
tailscale.com/ports: "http:80"
|
|
spec:
|
|
selector:
|
|
app: trading-dashboard
|
|
ports:
|
|
- port: 80
|
|
targetPort: 3000
|
|
name: http
|
|
type: ClusterIP
|