<p>I have 3 services in my ingress, the first 2 use <code>default</code> namespace. The third service is <strong>prometheus-server</strong> service which has namespace <code>ingress-nginx</code>.
Now, I want to map my prometheus DNS to the service, but getting error because ingress can't find the prometheus service in <code>default</code> namespace.</p>

<p>How to deal with non-default namespace in ingress definition?</p>

<p>You will need to refer to your service in the other namespace with its full path, that is <code>prometheus-server.ingress-nginx.svc.cluster.local</code>.</p>

<p>You shouldn’t need a second Ingress to do this.</p>
