Creation of Internal Loadbalancer instead of public in Azure AKS with NGF

Please use this template for troubleshooting questions.

**My issue:**I am working on replacement of ingress controller with gateway API. I made use of annotations to create a internal loadbalancer for ingress nginx in Azure AKS. But I see annotations are not supported in nginx gateway fabric. May I know how can I create a private loadbalancer

How I encountered the problem:
I have modified the nginx proxy config with annotations to create a private loadbalancer, then an error was thrown

Error from server (BadRequest): error when creating “nginxgateway-2.2.1.yaml”: NginxProxy in version “v1alpha2” cannot be handled as a NginxProxy: strict decoding error: unknown field “spec.kubernetes.service.annotations”

Solutions I’ve tried: Could not find any possible solutions as of now

Version of NGF and/or NGINX: /v2.2.1

Deployment environment: development

1 Like

Hi @Lohith, there are a couple of ways to accomplish this. One is by setting them in the Gateway’s infrastructure field.

The other is by defining a PATCH in the NginxProxy resource and setting annotations on the Service.

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.