404 Error with GKE ingress. I am on a Google Kubernetes cluster.
- Created a deployment
kubectl create deployment my-deploy --image=nginx
- Exposed it to a NodePort service
kubectl expose deployment my-deploy --name=my-svc --type=NodePort --port=80
- Created an Ingress resource
kind: Ingress
metadata:
name: my-ingress
spec:
rules:
- host: foo.bar.com
http:
paths:
- path: /bar
backend:
serviceName: my-svc
servicePort: 80
This automatically created a LoadBalancer as expected with IP 34.95.98.151
Added an entry to my windows hosts file located under “C:\Windows\System32\drivers\etc”
On accessing http://foo.bar.com/bar from my local machine, I get the following 404 error
I was hoping for NGINX main page to show up. I would very much appreciate it if someone can help me with this.

