-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Nginx Ingress controller default backend #1590
Comments
In the nginx ingress controller only is possible to have 1 "catch all" server. Using a default backend is possible be compatible with gce (for the default backend)
The default backend is used only if the service in the ingress rules does not have active endpoints. |
Agree on backend with multiple Ingress. It's actually an issue with the YML and should be addressed. I don't know what GCE Ingress does but I don't see a way for it to know either. Still I'd just pick one, log errors, and support the Yes, but that shouldn't make returning 404 a requirement. For example, one may well decide to show the home page for any unknown subdomain. It's a good practice, but not a "must". However HTTP 200 on |
For development having a default backend would be nice and would simplify deployment. |
Is there a request here or is it just a doc clarity issue? returning 404 is not a requirement. Even specifying a default backend is not strictly a requirement, but if the ingress doesn't specify one thorugh the The GCE controller creates 1 L7 per ingress, so the default of that ingress is the default of the l7. This is the equivalent of creating 1 nginx controller pod per ingress from a uber ingress controller. I think both modes are equally valid, and in the case where we have all ingresses served from a single pod, we assume that the admin doesn't care too much about multi tenant isolation (or they would run the 1 ingress per pod mode). |
I think there is a doc clarity issue here. It's not clear from the README at all what the default backend is for: it's just listed as a controller. |
Issues go stale after 30d of inactivity. Prevent issues from auto-closing with an If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
I noticed on https://github.com/kubernetes/contrib/tree/master/ingress/controllers/nginx that you advice to explicitely specify the default backend. Why do that instead of using the Ingress defined default backend?
Also, why is returning an HTTP 404 a requirement? Shouldn't that be up to the website to decide how to respond to unknown subdomains?
The text was updated successfully, but these errors were encountered: