Skip to content
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

fix(gwapi): allow custom nginx.conf #463

Merged
merged 2 commits into from
Oct 14, 2024
Merged

Conversation

LukeRepko
Copy link
Contributor

@LukeRepko LukeRepko commented Oct 10, 2024

There is no easy way to add proxy_buffer_size or similar parameters to Nginx via CRD. A feature for the same is being worked on and might be released early November per nginxinc/nginx-gateway-fabric/#1398.

As a workaround, this change includes the default nginx configuration as deployed in the current version of nginx gateway fabric. It will be made available to the nginx pod at /etc/nginx/nginx.conf by supplanting the nginx-gateway deployment with a kustomize patch that overrides nginx.conf via a mounted configMap volume containing said file.

Several additional parameters, proxy_buffer_size and proxy_buffers are being included at this time, to account for some large header payloads being proxied from Gnocchi.

@LukeRepko LukeRepko marked this pull request as draft October 10, 2024 20:39
@LukeRepko LukeRepko force-pushed the development branch 2 times, most recently from 3eaf352 to ba8f482 Compare October 11, 2024 22:26
There is no easy way to add `proxy_buffer_size` or similar parameters
to Nginx via CRD. A feature for the same is being worked on and might
be released early November per nginx/nginx-gateway-fabric#1398 (comment)

As a workaround, this change includes the default nginx configuration
as deployed in the current version of nginx gateway fabric. It will
be made available to the nginx pod at `/etc/nginx/nginx.conf` by
supplanting the nginx-gateway deployment with a kustomize patch
that overrides `nginx.conf` via a mounted configMap volume containing
said file.

Several additional parameters, `proxy_buffer_size` and `proxy_buffers`
are being included at this time, to account for some large header
payloads being proxied from Gnocchi.
@LukeRepko
Copy link
Contributor Author

Still testing this in the lab, it's working as expected so far, but there are a few other things I want to check before it's ready for review.

@LukeRepko LukeRepko marked this pull request as ready for review October 14, 2024 00:22
@LukeRepko
Copy link
Contributor Author

Deployed this to our DFW staging environment by means of a helm upgrade - this worked as expected.

@japerezjr
Copy link
Contributor

Looks good to me.

@LukeRepko LukeRepko merged commit 92c81ed into rackerlabs:main Oct 14, 2024
3 checks passed
@mpstefan
Copy link

Hey @LukeRepko, was going through some old conversations and came across this. We did implement SnippetFilters where you would be able to specify this kind of configuration (or most other NGINX customizations) in YAML.

If you get a chance, we'd love to know how well it works, or if it works, for you guys!

@LukeRepko
Copy link
Contributor Author

Thank you for the heads up @mpstefan - that's great news! I've created an internal story for our team to test and implement the same if it works as expected. Considering what we have in our backlog it will likely take a bit to implement, but I've left a note to follow-up here to let you know how it works out.

Jira: OSPC-990

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants