-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
404 handler code #2184
Comments
@kfox1111 if there are no endpoints available you should see 503, not 404
If you use a custom backend you receive the status code and you can customize the action |
Thanks for the info. I'm trying to implement this, but getting stuck. Where is the image for this?
If I understand right, each ingress object needs an nginx.ingress.kubernetes.io/default-backend set to the custom handler? |
So, do we need to build our own images? |
@kfox1111 no need. Please check https://quay.io/repository/kubernetes-ingress-controller/custom-error-pages-amd64?tab=tags Edit: #2289 |
Ah. perfect. thanks. |
Closing. Please reopen if you have more questions |
currently the 404 handler does just that. only serve out 404 messages (file not found). This is probably the appropriate message to return when a vhost does not exist.
On the other hand, if all of a services members are completely down, 404 is probably not the right answer, as its not that the files are missing so stop trying, but that 503 the server is currently unavailable. keep trying.
Can the 404 handler have a configuration flag added to it to configure which error code to return, so 2 of them can be launched, one for 404 and one for 503?
The text was updated successfully, but these errors were encountered: