Daniel WU:
After I set up Ingress successfully, still can’t access the web service
Pierpaolo P:
Please, could you post the ingress resource code?
Alistair Mackay:
You need an extra annotation to get rid of too many redirects
https://github.com/kubernetes/ingress-nginx/blob/main/docs/user-guide/nginx-configuration/annotations.md#server-side-https-enforcement-through-redirect|https://github.com/kubernetes/ingress-nginx/blob/main/docs/user-guide/nginx-configuration/annotations.md#server-side-https-enforcement-through-redirect
Alistair Mackay:
<http://nginx.ingress.kubernetes.io/ssl-redirect|nginx.ingress.kubernetes.io/ssl-redirect>: "false"
Shwetha:
ssl-redirect
and rewrite-target
are 2 nginx ingress annotations that are required in 90% of the cases. I would provide them when creating the ingress and then remove them later if not required.