<p>Here is my ingress:</p>
<pre><code>apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: 8link-app-kubernetes-ingress
  annotations:
    kubernetes.io/ingress.class: nginx
    nginx.ingress.kubernetes.io/use-regex: &quot;true&quot;
    nginx.ingress.kubernetes.io/rewrite-target: /
spec:
  rules:
  - host: link8.in
    http:
      paths:
      - backend:
          service:
            name: link8-app-prod-svc
            port:
              number: 80
        path: /
        pathType: Prefix
  - host: test.link8.in
    http:
      paths:
      - backend:
          service:
            name: link8-app-prod-svc
            port:
              number: 80
        path: /
        pathType: Prefix
</code></pre>
<p>In the above ingress, I have the same Front-end service which is defined to be run on both Domain and sub-domain (for the testing), it is working for sub-domain but not for the domain.</p>
<p>I get Error 404 on domain path:
<a href="https://i.stack.imgur.com/C2uhW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/C2uhW.png" alt="enter image description here" /></a></p>
<p>Following is my DNS settings, where value is my Ingress Address:
<a href="https://i.stack.imgur.com/HmtEA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HmtEA.png" alt="enter image description here" /></a></p>
<p><em><strong>UPDATE:</strong></em></p>
<p><a href="https://i.stack.imgur.com/s8Mfv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/s8Mfv.png" alt="enter image description here" /></a></p>

<p>In order to clear things for anyone, who will try to figure out the answer.</p>
<p>The question was answered by the author.</p>
<p>The problem was not in <code>Kubernetes</code> resources of any kind, it was a browser-specific issue, clearing the browser storage solved the problem.</p>
<blockquote>
<p>my problem wasn't related to k8s;<br />
it was working from start.<br />
Just I had to clear everything for my domain in chrome storage</p>
</blockquote>
<hr />
<p><a href="https://i.stack.imgur.com/4ZILN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4ZILN.png" alt="enter image description here" /></a></p>
