<p>I created an EKS cluster and deployed an NGINX ingress controller with an Application load balancer. I deployed a sample app and tied it to my domain name.
Here is the ingress file - </p>

<pre><code>kind: Ingress
metadata:
  name: "2048-ingress"
  annotations:
    kubernetes.io/ingress.class: alb
    alb.ingress.kubernetes.io/scheme: internet-facing
    alb.ingress.kubernetes.io/target-type: ip
  labels:
    app: 2048-ingress
spec:
  rules:
    - host: test.abc.xyz
    - http:
        paths:
          - path: /game
            backend:
              serviceName: "service-2048"
              servicePort: 80
</code></pre>

<p>When I open test.abc.xyz/game in my browser it returns a 404 but test.abc.xyz works. Am I missing something here? I want test.abc.xyz/game to work and test.abc.xyz to return a 404.</p>

<p>Update - 
I am following this tutorial to deploy the app - 
<a href="https://aws.amazon.com/blogs/opensource/kubernetes-ingress-aws-alb-ingress-controller/" rel="nofollow noreferrer">https://aws.amazon.com/blogs/opensource/kubernetes-ingress-aws-alb-ingress-controller/</a>
I want this app to be redirected to /game and not /</p>

Anshul Tripathi
<p>You have to define an wildcard in the path section like below:</p>

<pre><code>spec:
  rules:
    - host: test.abc.xyz
    - http:
        paths:
          - path: /*
            backend:
              serviceName: "service-2048"
              servicePort: 80
   - path: /game/*
            backend:
              serviceName: "service-2048"
              servicePort: 80
</code></pre>

<p>Unfortunately is not well written in the documentation.</p>
