Dears, in lab "231. Practice Test - Ingress - 2", after creating the ingress in . . .

Mohamad Alhussein:
Dears, in lab “231. Practice Test - Ingress - 2”, after creating the ingress in the last step and also adding both annotations, /wear and /watch does not work, although the yaml is the same as in the solution and step8 is passed successfully. Does the annotation " http://nginx.ingress.kubernetes.io/ssl-redirect|nginx.ingress.kubernetes.io/ssl-redirect: “false”" still working or is it deprecated?

mjv:
What is the output of nginx-controller-pod?

Mohamad Alhussein:
Hi @mjv the ingress controller pod is working

Mohamad Alhussein:

mjv:
Ok,what its logs show?

mjv:
And,how do you test the connection to the ingress-test in app-space namespace?

Mohamad Alhussein:

Mohamad Alhussein:
i am testing through the UI by clicking in “Ingress” tab

Mohamad Alhussein:

Mohamad Alhussein:
when i try to open the ingress with /wear or /watch, i get “too redirects” in the browser as in the below

Mohamad Alhussein:

mjv:
What is the output of:
kubectl get svc -A
kubectl -n ingress-space get pod -o jsonpath-as-json='{.spec.containers[].args}'
kubectl -n app-space describe ing ingress-test
kubectl -n app-space annotate --list --all ing ingress-test

Mohamad Alhussein:
Actually the lab time finished and the session closed. I will try it again and share with you the output of the above command.

mjv:
In ingress-controller log there is no mentioning of 2nd annotation in the records.

mjv:
So you need to be sure those are added.

Mohamad Alhussein:
at the beginning i added only the first one, then after i created the ingress, i edited it added the “ssl-redirect”. May be we need to delete it and then recreate it after that ?

mjv:
You can try for sure.

unnivkn:
Hi @Mohamad Alhussein did you get a chance to refer the solution tab?
fyr: https://github.com/kodekloudhub/certified-kubernetes-administrator-course/blob/master/docs/09-Networking/25-Practice-Test-CKA-Ingress-Net-2.md

Mohamad Alhussein:
i guys, i went through the lab again and this time it worked with no other changes, dunno what was the issue, thanks a lot for your prompt help, appreciated