Can we customise the httpproxy object error - "no healthy upstream" #7251
Unanswered
karthikinala
asked this question in
Q&A
Replies: 1 comment
|
Contour doesn't have a built-in way to customize the "no healthy upstream" error page since that response comes from Envoy itself when all backend pods are unhealthy or gone. A couple of approaches though:
envoy:
listener:
localReplyConfig:
mappers:
- filter:
statusCodeFilter:
comparison:
op: EQ
value:
defaultValue: 503
body:
inlineString: "Service temporarily unavailable. Please try again later."
The first approach gives you more control over the response body/headers without needing an extra service. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi Community,
Currently, we are using Contour v1.29.1 with an HTTPProxy object to route our traffic. When a pod is restarting or down, the browser shows the default "no healthy upstream" error. We would like to replace this with a custom error message or banner. Is there a way to achieve this?
All reactions