That is correct. Backend not available should mean 503 and not 404, even though 503 only suggests temporary unavailability.
/Rajat
> Listed on SIX Swiss Exchange
>
> Our websites: lastminute.com | bravofly.com | volagratis.com | rumbo.es | jetcost.com | group.lastminute.com
>
> This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden and could be a crime.
>
> --
> You received this message because you are subscribed to the Google Groups "kubernetes-sig-network" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-sig-ne...@googlegroups.com.
> To post to this group, send email to kubernetes-...@googlegroups.com.
> Visit this group at https://groups.google.com/group/kubernetes-sig-network.
> For more options, visit https://groups.google.com/d/optout.
That is correct. Backend not available should mean 503 and not 404, even though 503 only suggests temporary unavailability.
/Rajat
On May 14, 2016 3:36 AM, "Michele Orsi" <michel...@lastminute.com> wrote:
>
> Hi,
>
> we are working on creating a cluster on kubernetes with bare metal. We use the ingress resource to map our services and we use the nginx ingress controller from the contrib project to manage them:
> https://github.com/kubernetes/contrib/tree/master/ingress/controllers/nginx
>
> We are now in the phase of checking the nginx behaviour. We noticed that when it doesn’t found a pod to redirect a request to it just serve a 404 error due to the 404-server called.
> https://github.com/kubernetes/contrib/tree/master/404-server
>
That's a good question Prashanth!I had in mind the situation where there are no pods to serve our request, but actually there are also those other situations.So here could be a recap with meaningful status code:
- no ingress mapping available for specific request (404 error)
- no service that maps specific ingress rule (5xx error)
- no pods that are able to reply to that specific ingress/service (5xx error)
I don't see here:the possibility to pass any other error page apart from the 404 error.
Probably it could be a development we should do on our own and then open a MR.
Do you agree?Thanks,Michele Orsi
Interesting behaviour just discovered.If you deploy the nginx-error-server (https://hub.docker.com/r/aledbf/nginx-error-server/) as the --default-backend-service in the nginx ingress controller everything works as expected:- when you drop the service -> 503 error from the first request- when you remove all the pods -> 502 for some seconds then 503- if you remove ingress (rule) -> 404
That's great!!!!!So the nginx ingress controller works as expected, the problem was that the default http backend returns always 404.
Michele