This commit is contained in:
2026-02-18 19:44:54 +01:00
parent d2328fc8d6
commit 6b3d0c342e
3 changed files with 12 additions and 10 deletions

View File

@@ -19,16 +19,17 @@ spec:
http:
paths:
# Backend API routes first (more specific)
- path: /api
pathType: Prefix
# $2 capture group strips the /api prefix via rewrite-target annotation
- path: /api(/|$)(.*)
pathType: ImplementationSpecific
backend:
service:
name: {{ include "timetracker.fullname" $ }}-backend
port:
number: {{ $.Values.backend.service.port }}
# Frontend (catch-all)
- path: /
pathType: Prefix
- path: /()(.*)
pathType: ImplementationSpecific
backend:
service:
name: {{ include "timetracker.fullname" $ }}-frontend