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 -
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
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.
Update - I am following this tutorial to deploy the app - https://aws.amazon.com/blogs/opensource/kubernetes-ingress-aws-alb-ingress-controller/ I want this app to be redirected to /game and not /