I have followed the steps of installation from metallb website.
And the metallb containers are also running.
After that I deployed an nginx service for testing with service as LoadBalancer. The LoadBalancer is not getting IP from metallb.
Any suggestions on how to fix this?
Since I'm not able to write comments, will add all details and path here.
I used following page for setting up a Metal loadbalancer.
You can verify an installation by running:
kubectl get all -n metallb-system
Documentation says:
So we go to the page related to setting up the configmap, I used a simple layer 2 configuration and created a metallb-configmap.yaml file:
Once you've done it, you'll need to apply this configmap:
kubectl apply -f metallb-configmap.yaml
Then simple example with nginx deployment:
kubectl create deploy nginx --image=nginx --replicas=1
And service:
kubectl expose deploy nginx --port=80 --type=LoadBalancer
And check if received an external IP address:
Check this works:
Let me know if you have different results.