<p>I'm deploying my application in the cloud, inside a cluster on 03 pods:</p>
<ol>
<li>one pod: backend - Quarkus</li>
<li>one pod: frontend - Angular</li>
<li>one pod: DB - Postgres</li>
</ol>
<p><strong>The backend has 03 endpoints:</strong></p>
<ol>
<li>One endpoint: GraphQL</li>
<li>Two endpoints: Rest</li>
</ol>
<p><strong>The pods are exposed:</strong></p>
<ol>
<li>backend: ClusterIp</li>
<li>DB: ClusterIp</li>
<li>frontend: NodePort</li>
</ol>
<p><strong>I have an Ngnix web server &amp; 02 ingress manifests; one for the backend and a second for the frontend:</strong></p>
<p>1- backend-ingress:</p>
<pre><code>    apiVersion: networking.k8s.io/v1
    kind: Ingress
    metadata:
      name: mcs-thirdparty-back-ingress
      namespace: namespace
      annotations:
        nginx.ingress.kubernetes.io/use-regex: &quot;true&quot;
    spec:
      ingressClassName: nginx-internal
      rules:
      - host: backend.exemple.com
        http:
          paths:
          - path: /
            backend:
              service:
                name: mcs-thirdparty-backend
                port:
                  number: 8080
            pathType: Prefix
</code></pre>
<p>2- frontend-ingress:</p>
<pre><code>apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: mcs-thirdparty-ingress
  namespace: namespace
spec:
  ingressClassName: nginx-internal
  rules:
  - host: bilels.exemple.com
    http:
      paths:
      - path: /
        backend:
          service:
            name: mcs-thirdparty-frontend
            port:
              number: 80
        pathType: Prefix
</code></pre>
<p>For the GraphQL endpoint/request; the frontend can correctly communicate with the backend and fetchs the required data.
When I run the POST request to fetch the accessToken from the server (Rest Endpoint), I receive the 404 error code.</p>
<p><a href="https://i.stack.imgur.com/rp4ey.jpg" rel="nofollow noreferrer">The error screenshot is here</a></p>
<p>I tried to add several changes in the backend-ingress manifest, but always 404
<code>- path: /(.*)</code>
<code>- path: /*</code>
<code>- path: /response</code></p>

<p>I thinks that I managed to make another Diagnotic method wiht the help for Ryan Dawson.
I did PortForaward the backend pod and request from the locally, then I found that there is a 500 error code --&gt; meaning that the request was not matching the api requirements: in the frontend I was sendign the wrong context type.</p>
<p>--&gt; so the ingress config is already in a good shape.</p>
