fix
This commit is contained in:
@@ -2,6 +2,6 @@ apiVersion: v2
|
|||||||
name: timetracker
|
name: timetracker
|
||||||
description: A Helm chart for the TimeTracker application
|
description: A Helm chart for the TimeTracker application
|
||||||
type: application
|
type: application
|
||||||
version: 1.0.3
|
version: 1.0.4
|
||||||
appVersion: "1.0.0"
|
appVersion: "1.0.0"
|
||||||
dependencies: []
|
dependencies: []
|
||||||
|
|||||||
@@ -19,16 +19,17 @@ spec:
|
|||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
# Backend API routes first (more specific)
|
# Backend API routes first (more specific)
|
||||||
- path: /api
|
# $2 capture group strips the /api prefix via rewrite-target annotation
|
||||||
pathType: Prefix
|
- path: /api(/|$)(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
backend:
|
backend:
|
||||||
service:
|
service:
|
||||||
name: {{ include "timetracker.fullname" $ }}-backend
|
name: {{ include "timetracker.fullname" $ }}-backend
|
||||||
port:
|
port:
|
||||||
number: {{ $.Values.backend.service.port }}
|
number: {{ $.Values.backend.service.port }}
|
||||||
# Frontend (catch-all)
|
# Frontend (catch-all)
|
||||||
- path: /
|
- path: /()(.*)
|
||||||
pathType: Prefix
|
pathType: ImplementationSpecific
|
||||||
backend:
|
backend:
|
||||||
service:
|
service:
|
||||||
name: {{ include "timetracker.fullname" $ }}-frontend
|
name: {{ include "timetracker.fullname" $ }}-frontend
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ frontend:
|
|||||||
|
|
||||||
service:
|
service:
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
port: 80
|
port: 8080
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
@@ -77,16 +77,17 @@ ingress:
|
|||||||
className: nginx
|
className: nginx
|
||||||
annotations:
|
annotations:
|
||||||
nginx.ingress.kubernetes.io/ssl-redirect: "true"
|
nginx.ingress.kubernetes.io/ssl-redirect: "true"
|
||||||
|
nginx.ingress.kubernetes.io/rewrite-target: /$2
|
||||||
|
|
||||||
hosts:
|
hosts:
|
||||||
- host: timetracker.local
|
- host: timetracker.local
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
pathType: Prefix
|
pathType: ImplementationSpecific
|
||||||
service: frontend
|
service: frontend
|
||||||
port: 80
|
port: 8080
|
||||||
- path: /api
|
- path: /api(/|$)(.*)
|
||||||
pathType: Prefix
|
pathType: ImplementationSpecific
|
||||||
service: backend
|
service: backend
|
||||||
port: 3001
|
port: 3001
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user