How to Migrate from NGINX Ingress Controller to NGINX Gateway Fabric (Configmap) #4430
Unanswered
jinhee6930
asked this question in
Q&A
Replies: 1 comment 3 replies
-
|
Hey @jinhee6930, thanks for your interest in NGF! You’re correct about options 1–3. For option 4–style directives, you can use the snippetsFilter API today to set I’m not sure what your exact header-forwarding use case is, but you might be able to achieve what you want with the XForwardedFor mode. |
Beta Was this translation helpful? Give feedback.
3 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, I’m planning to migrate from the NGINX Ingress Controller to NGINX Gateway Fabric.
When deploying the NGINX Ingress Controller, I previously used the following settings in the ConfigMap:
To apply equivalent behavior in NGINX Gateway Fabric, I believe the following approach makes sense:
Enable snippet filters when installing NGINX Gateway Fabric via Helm:
Create a ClientSettingsPolicy and set targetRef to the Gateway.
Any Routes attached to that Gateway should inherit these ClientSettingsPolicy settings.
spec.keepAlive.timeout = 600ssl-redirect: "false"
Simply avoid using spec.rules.filters.requestRedirect in the HTTPRoute.
proxy-read-timeout: "600" and proxy-send-timeout: "600"
I’m not sure how to configure equivalents for these timeouts in NGINX Gateway Fabric.
Are there defaults for these settings in nginx gateway fabric?
use-forwarded-headers: "true"
This is the part I’m most curious about.
I want to know how to replicate the NGINX Ingress Controller’s use-forwarded-headers: "true" behavior in NGINX Gateway Fabric.
I need to be able to determine the client's IP through that setting.
I’d appreciate it if someone could confirm whether my understanding of items 1–3 is correct, and also explain how to handle items 4 and 5.
For reference, I know that ClientSettingsPolicy currently supports the following fields:
Please note that sentences may be strange due to the use of a translator.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions