How to route ingress rule to a service which is in different namespace

Asking for help? Comment out what you need so we can get more information to help you!

Cluster information:

Kubernetes version:
Cloud being used: (put bare-metal if not on a public cloud) AWS
Installation method:Manual through yaml
Host OS:
CNI and version:
CRI and version:

You can format your yaml by highlighting it and pressing Ctrl-Shift-C, it will make your output easier to read.

In short, you don’t. There was a CVE on this, where some implementations of Ingress did allow it, which bypasses security measures and lets a single compromised namespace expose other people’s services without permissions.

Gateway API has a more formal mechanism to allow this, which involves explicit, bi-directional permission.