Hi All, Regarding *questions 8 & 9* in the lab : *SERVICES & NETWORKING, . . .

Mudit:
Hi All,
Regarding questions 8 & 9 in the lab : SERVICES & NETWORKING, INGRESS NETWORKING – 2

It URL with /wear or /watch works only when you configure the below annotations: “http://nginx.ingress.kubernetes.io/ssl-redirect|nginx.ingress.kubernetes.io/ssl-redirect: false”.

  1. But in the k8s doc, this option is not found anywhere, and in exam it would be difficult to find it in the doc. Any suggestions on where to find it from as ready reference in exam if it comes?
  2. Also is this annotation mandatory for any ingress to work properly?
root@controlplane ~ ✖ k -n app-space describe ingress app-ingress 
Name:             app-ingress
Namespace:        app-space
Address:          
Default backend:  default-http-backend:80 (<error: endpoints "default-http-backend" not found>)
Rules:
  Host        Path  Backends
  ----        ----  --------
  *           
              /wear    wear-service:8080 (10.244.0.5:8080)
              /watch   video-service:8080 (10.244.0.4:8080)
Annotations:  <http://nginx.ingress.kubernetes.io/rewrite-target|nginx.ingress.kubernetes.io/rewrite-target>: /
              <http://nginx.ingress.kubernetes.io/ssl-redirect|nginx.ingress.kubernetes.io/ssl-redirect>: false
Events:       &lt;none&gt;

image.png

Mouhamadou Moustapha Camara:
Hi Mudit,
This annotation is use when you don’t use SSL to access resource location by default it’s true, this case we don’t use ssl this is why you need to add it.

1 - The Kubernetes ingress documentation detail it here : https://github.com/kubernetes/ingress-nginx/blob/main/docs/examples/rewrite/README.md
unfortunately you don’t have access to this resource during examen but on the documentation he give you sample how annotation work on ingress resource https://kubernetes.io/docs/concepts/services-networking/ingress/#the-ingress-resource

2 - It’s not mandatory by default the value is true you have to mention it only if you don’t want to redirect to ssl resource location

you can found on this link the authorize link for CKA and CKAD https://docs.linuxfoundation.org/tc-docs/certification/certification-resources-allowed#certified-kubernetes-administrator-cka-and-certified-kubernetes-application-developer-ckad|https://docs.linuxfoundation.org/tc-docs/certification/certification-resources-allowed#certified-kubernetes-administ[…]es-application-developer-ckad

Mudit:
thank you for your inputs @Mouhamadou Moustapha Camara