<p>Since 3 days, I have a problem with a deployment in kubernetes. I would like to deploy two react-js application : the first in <a href="http://app.my-domain.com" rel="nofollow noreferrer">http://app.my-domain.com</a> and the other in <a href="http://app.my-domain.com/shop" rel="nofollow noreferrer">http://app.my-domain.com/shop</a></p>
<p>NB: the two url is fake, it's just for example.</p>
<p>The first react application was very well deployed in <a href="http://app.my-domain.com" rel="nofollow noreferrer">http://app.my-domain.com</a> . Now when i want to put the second react application in <a href="http://app.my-domain.com/shop" rel="nofollow noreferrer">http://app.my-domain.com/shop</a>, it's not working.</p>
<p>NB: The two react applications are in different namespaces and exposed with two ingress configurations.</p>
<p>Here are my two ingress configuration which expose my clusterIP services relative to the two react-js applications
:</p>
<pre><code>spec:
  rules:
    - host: app.my-domain.com
      http:
        paths:
          - path: /
            backend:
              serviceName: first-service
              servicePort: 80

spec:
  rules:
    - host: app.my-domain.com
      http:
        paths:
          - path: /shop
            backend:
              serviceName: second-service
              servicePort: 80
</code></pre>
<p>So I have a blank page with the second application.</p>
<p>Please I would like your help for deploying this two react-js applications in this same domain.</p>

<p>I think the simple solution for this, is to use one ingress resource with this domain (app.my-domain.com) and reference the two services with their fqdn : first-service.my-namespace-1.svc.cluster.local, second-service.my-namespace-2.svc.cluster.local.</p>
<p>I am very interested in another solution.</p>
