Hi, Can someone tell mw what is wrong with this ingress definition. I created th . . .

Anish Nagaraj:
Hi, Can someone tell mw what is wrong with this ingress definition. I created this to resolve LL2-Q5. I saw the explanation video. The only diff between what I have and the video is that I have specified the PathType. But with my definition, the ingress is getting is successfully created but when I curl i get 404.

apiVersion: <http://networking.k8s.io/v1|networking.k8s.io/v1>
kind: Ingress
metadata:
  name: ingress-vh-routing
spec:
  rules:
  - host: watch.ecom-store
    http:
      paths:
      - path: "/video"
        pathType: "Prefix"
        backend:
          service:
            name: video-service
            port:
              number: 8080
  - host: apparels.ecom-store
    http:
      paths:
      - path: "/wear"
        pathType: "Prefix"
        backend:
          service:
            name: apparels-service
            port:
              number: 8080

Tej_Singh_Rana:
What path you have specified with the curl?

$ curl -Is <http://watch.ecom-store.com:30093/video>
HTTP/1.1 200 OK
Server: nginx/1.17.8
Date: Mon, 04 Jan 2021 05:44:36 GMT
Content-Type: text/html; charset=utf-8
Content-Length: 297
Connection: keep-alive
Vary: Accept-Encoding

I just curled and worked as expected.

Anish Nagaraj:
This is what I get Tej

Anish Nagaraj:
$ curl -Is <http://watch.ecom-store.com:30093/video>
HTTP/1.1 404 Not Found
Server: nginx/1.17.8
Date: Mon, 04 Jan 2021 08:28:11 GMT
Content-Type: text/html
Content-Length: 153
Connection: keep-alive

Javier:
You missed .com in host parameters

Tej_Singh_Rana:
Nice catch @Javier :+1:
Please verify now @Anish Nagaraj.

Anish Nagaraj:
Oh wow! Thank you so much @Javier

Anish Nagaraj:
This works now @Tej and @Javier

Anish Nagaraj:
Thank you