Skip to content

Extension/possible to respond with a status code directly from HTTPRoute, such as 503 Service Unavailable during maintenance? #1293

Answered by pleshakov
meastp asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @meastp

I see a few options:

There are a few related things:

(1)
If you reference a non-existing service as a backend ref in an HTTPRoute, NGF (NGINX Gateway Fabric) will return 500. This is prescribed by the Gateway API here https://gateway-api.sigs.k8s.io/reference/spec/#gateway.networking.k8s.io%2fv1.HTTPRouteRule , field backendRefs

(2)
If the referenced Service has 0 Endpoints, NGF will return …

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@meastp
Comment options

@pleshakov
Comment options

@meastp
Comment options

Answer selected by mpstefan
Comment options

You must be logged in to vote
1 reply
@meastp
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants