I face an issue while working on the labs for ingress. While creating a new ingr . . .

reenu xavier:
I face an issue while working on the labs for ingress. While creating a new ingress for paths /wear and /watch. I have created the yml file as shown in solution, but while trying to access the web page, it is not loading for me.

apiVersion: http://networking.k8s.io/v1|networking.k8s.io/v1
kind: Ingress
metadata:
name: ingress-wear-watch
namespace: app-space
annotations:
http://nginx.ingress.kubernetes.io/rewrite-target|nginx.ingress.kubernetes.io/rewrite-target: /
spec:
rules:

  • http:
    paths:
    • path: /wear
      pathType: Prefix
      backend:
      service:
      name: wear-service
      port:
      number: 8080
    • path: /watch
      pathType: Prefix
      backend:
      service:
      name: video-service
      port:
      number: 8080
      Please help me on this , as I face same issue for lab 1 and 2 related to ingress.

AT:
Hi, try adding below to annotations.

<http://nginx.ingress.kubernetes.io/ssl-redirect|nginx.ingress.kubernetes.io/ssl-redirect>

Mano:
Xavier…check also your ingress controller pod log. Should contain more info on your issue.

unnivkn:
Hi… @reenu xavier https://kodekloud.slack.com/archives/CDR4R9Z7E/p1634509110212300