Incorrect ingress address mapping

Hi,

I’m using minikube to setup a local k8s cluster for test/development purposes. I’ve installed the following apps via Helm:

*** Metal lb to assign IP addresses for services of type Load Balancer.**
*** nginx-ingress-controller to be able to create Ingress routing rules.**

Also, I’ve added the following add-on via minikube:

*** ingress-dns to set up an external DNS service to resolve the exposed ingress rules**

The problem is when I create an ingress resource, it get assigned the IP address of the minikube node (minikube ip) not the Load Balancer IP address of the nginx-ingress-controller. Here’s a sample kubectl output:

NAME CLASS HOSTS ADDRESS PORTS AGE
minimal-ingress nginx foo.devopsgo.com,bar.devopsbug.com 192.168.49.2 80 13h

Here’s the Load Balancer IP address of the nginx-ingress-controller:

NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
nginx-ingress-controller LoadBalancer 10.100.65.198 192.168.49.50 80:31884/TCP,443:30916/TCP 13h

Can anyone explain why this is happening? and thanks in adv.