-
Notifications
You must be signed in to change notification settings - Fork 0
fix(k8s): Global rewrite-target "/" collapses all requests in frontend-ingress.yaml #398
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't workinginfrastructureInfrastructure and plumbing workInfrastructure and plumbing work
Description
Summary
The annotation nginx.ingress.kubernetes.io/rewrite-target: / is applied globally. This means every request — including /api/foo, /healthz, and frontend deep links like /widgets/marketplace — arrives at the upstream service as /, breaking API routing and App Router direct loads.
Affected file
k8s/base/frontend-ingress.yaml — lines 11-15, 24-25, 47-48
Required fix
Remove the global rewrite annotation. If path stripping is needed for a specific route, apply a targeted annotation on that rule only. Switch /api(/|$)(.*) regex rules to simple Prefix path type rules:
- path: /api
pathType: Prefix
backend:
service:
name: cognitive-mesh-apiReferences
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinginfrastructureInfrastructure and plumbing workInfrastructure and plumbing work