Skip to content

fix(k8s): Global rewrite-target "/" collapses all requests in frontend-ingress.yaml #398

@github-actions

Description

@github-actions

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-api

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinginfrastructureInfrastructure and plumbing work

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions