Closed Slyke closed 2 years ago
Hi @Slyke thanks for reporting!
Be sure to check out the docs while you wait for a human to take a look at this :slightly_smiling_face:
I've parsed the text of your issue and it looks like you might be mixing up the two Ingress Controllers, please take a look at this page to see the differences between nginxinc/kubernetes-ingress
(this repo) and kubernetes/ingress-nginx
.
Cheers!
@Slyke looks like you are using a different NGINX Ingress project. From your information above, you are using this project:
https://github.com/kubernetes/ingress-nginx
Which is different from this project. https://github.com/nginxinc/kubernetes-ingress
HTH!
@jasonwilliams14 ooo sorry about that! I have posted it on the correct github https://github.com/kubernetes/ingress-nginx/issues/8053 . Will close this issue!
Describe the bug Ingress controller returns 404 for all service routes. This might be related to #1274
To Reproduce Steps to reproduce the behavior:
Ingress for reverse proxy's service:
My reverse proxy default.conf:
Expected behavior Should be able to navigate to mydomain.xyz/ and the URL `` be forwarded to the reverse proxy.
Release: v1.1.0 Build: cacbee86b6ccc45bde8ffc184521bed3022e7dee Repository: https://github.com/kubernetes/ingress-nginx nginx version: nginx/1.19.9
Your environment
Version of the Ingress Controller:
Version of Kubernetes
Kubernetes platform (e.g. Mini-kube or GCP) Bare-metal
Additional context If
nginx.ingress.kubernetes.io/rewrite-target: /
is not set, the ingress controller returns 404. If it is set, then the ingress controller will forward the request to the downstream reverse proxy, but it will only forward what is explicitly set here. With it only/
, it will always returnDefault route
even when navigating tomydomain.xyz/test
. I can cURL the downstream reverse proxy directly and see that it is returning the correct response for each route.Controller startup logs: