-
I have been trying to implement NGF on K8s. Currently basic setup is working as expected. My question is related to how can I define multiple I'm able to currently define separate NodePort services that allow connections from AWS LB to dedicated ports but they all tie to a single Gateway. Currently when deploying multiple Gateways or GatewayClasses using NGF, I'm getting If NGF currently don't support multiple Gateways declaration, what are my alternatives apart from going back to Ingress rout? Appreciate your help and suggestions. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hi @devcwm At the moment, NGF only supports one Gateway resource per NGF installation. For your use case, to support multiple Gateway resources, it is necessary deploy multiple NGFs where each NGF needs to be deployed:
For example, you can have:
If you use helm, you can use nginxGateway.gatewayControllerName and nginxGateway.gatewayClassName parameters to support the use case above. See https://github.com/nginxinc/nginx-gateway-fabric/tree/v1.1.0/deploy/helm-chart We do have plans to support multiple Gateways per GatewayClass in the future (there is no issue in our GitHub repo yet though) |
Beta Was this translation helpful? Give feedback.
-
I did add a ticket to track this particular item here: #1443 Can't guarantee it will be in 1.3, but it is definitely something we need to get to. |
Beta Was this translation helpful? Give feedback.
Hi @devcwm
At the moment, NGF only supports one Gateway resource per NGF installation.
For your use case, to support multiple Gateway resources, it is necessary deploy multiple NGFs where each NGF needs to be deployed:
gateway-ctlr-name
parameter -- https://docs.nginx.com/nginx-gateway-fabric/reference/cli-help/#flags -- https://github.com/nginxinc/nginx-gateway-fabric/blob/4e3d9c4bcc7f65fc2671beffa92ca081644325f6/deploy/manifests/nginx-gateway.yaml#L146controllerName
that matches the parameter above -- https://github.com/nginxinc/nginx-gateway-fabric/blob/4e3d9c4bcc7f65fc2671beffa92ca081644325f6/deploy/manifests/nginx-gate…