Not able to annotate the Kong ingress controller with AKS private load balancer

899 Views Asked by At

I have a private AKS cluster and I am trying to configure the ingress for this AKS cluster. I am planning to use the Internal LB for Azure by annotating the the Kong Proxy service with annotations: service.beta.kubernetes.io/azure-load-balancer-internal: “true”

Need guidance how can I add the annotation during the install of Kong Ingress controller using helm by passing a parameter. I did try using below command but it did not work as I can see a public Azure LB in the cluster resource group

helm install kong/kong –namespace ingress-kong –generate-name --set ingressController.installCRDs=false –set service.annotations.“service.beta.kubernetes.io/azure-load-balancer-internal”=true

1

There are 1 best solutions below

3
On BEST ANSWER

I'm not sure which service needs to be an internal load balancer, but according to the values there are several ways of adding annotations to different parts of the chart, you just need to use a proper one, like the one on line 79:

https://github.com/Kong/charts/blob/main/charts/kong/values.yaml#L79

--set admin.annotations.xxx.=true