Skip to content

How to translate an ingress using websockets to gateway API? #3070

Answered by sjberman
kbsquared asked this question in Q&A
Discussion options

You must be logged in to vote

Happy to help, and this type of feedback around use cases always helps us improve our documentation so we know what users need!

Regarding the snippets filter, I think you could define one as simply as:

apiVersion: gateway.nginx.org/v1alpha1
kind: SnippetsFilter
metadata:
  name: proxy-read-timeout
spec:
  snippets:
    - context: http.server.location
      value: proxy_read_timeout 200s;

and attach it to each HTTPRoute rule similar to the example in that guide. The idea behind the SnippetsFilter is basically giving the ability to inject literal nginx config into a specific place.

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@sjberman
Comment options

@sjberman
Comment options

@kbsquared
Comment options

@sjberman
Comment options

Answer selected by kbsquared
@kbsquared
Comment options

@sjberman
Comment options

@sjberman
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
2 participants