<p>When applying the yaml file to the ingress services a load balancer is created. I pointed my DNS domain to that load balancer IP and it reaches the nginx server. However when routing to <a href="https://www.example.com/api/users/" rel="nofollow noreferrer">https://www.example.com/api/users/</a> or <a href="https://www.example.com/api/users/currentuser/" rel="nofollow noreferrer">https://www.example.com/api/users/currentuser/</a> (or it's http:// equivalents) it returns a 404 page. Here is the Ingress-Nginx yaml file I'm using:</p>
<pre><code>apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: ingress-service
  annotations:
    kubernetes.io/ingress.class: nginx
    nginx.ingress.kubernetes.io/use-regex: &quot;true&quot;
spec:
  rules:
    - host: www.example.com
      http:
        paths:
          - path: /api/users/
            pathType: Prefix
            backend:
              service:
                name: be-auth-srv
                port:
                  number: 9001
          - path: /auth/
            pathType: Prefix
            backend:
              service:
                name: be-contact-form-srv
                port:
                  number: 9000
</code></pre>
<p>Anybody can shed light on this topic? Thanks</p>

Manel
<p>Based on the example you provided, I would suggest, as a test, to update the first path definition to the following:</p>
<ul>
<li>path: /api/users(/|$)(.*)</li>
</ul>
<p>...and assuming the Nginx Ingress Controller is already configured to terminate TLS, try reaching <a href="https://www.example.com/api/users/" rel="nofollow noreferrer">https://www.example.com/api/users/</a></p>
<p>I would also double check that the be-auth-srv service is configured to listen on port 9001.</p>
