Hi, Anyone working on lightning lab 2 for CKAD? I have a ques. In that 5th quest . . .

Ilakkia Srivatsan:
Hi, Anyone working on lightning lab 2 for CKAD? I have a ques. In that 5th question which is about ingress… Can anyone able to connect to the “http://watch.ecom-store.com:30093/video” using curl -v command? If so can you please help me with that. I tried connecting using curl -v, but i am redirected to 404 error.

Tharanath:
Hi @Ilakkia Srivatsan did you use correct ingress yaml

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

Tharanath:
Try this… It shou;d work

Tharanath:

Ilakkia Srivatsan:
Thank you. Will try this one. But the yaml file looks exactly same as this

Ilakkia Srivatsan:
Thank you @Tharanath The yaml file you gave is working fine. Let me verify with mine.