In my k8s cluster I have a Loadbalancer service, which gets assigned an External-IP for eg. 1.2.3.10
. I also have a metallb IPAddressPool
apiVersion: metallb.io/v1beta1
kind: IPAddressPool
metadata:
generation: 1
name: default-metallb-ip-pool
namespace: metallb-system
spec:
addresses:
- 1.2.3.0/23
autoAssign: true
avoidBuggyIPs: true
But the loadbalancer IP is not associated with any Node IP in my k8s cluster. So when I create a NodePort service for example on port 32100
and send data to 1.2.3.10:32100
it says connection refused. But if I send it to the exact Node IP that the service is running on for example 1.2.3.15:31200
it connects successfully. How do I get my loadbalancer IP to act as a floating IP associating with Node IPs in my k8s cluster?