Background
When deploying an on-premises k8s cluster, I ended up having a requirement to setup an "external" load balancer. The best candidate that fits this need was MetaLB.
Walkthrough
I chose to use the helm install
installation method to deploy MetalLB into my k8s cluster.
https://metallb.universe.tf/installation/#installation-with-helm
Setting up the external IP pool
--- configInline: address-pools: - name: default protocol: layer2 addresses: - 192.168.200.50-192.168.200.60 ...
Helm deployment of MetalLB
helm repo add metallb https://metallb.github.io/metallb # see above for the snippet of the values.yml file helm install metallb metallb/metallb -f values.yaml
Appendix
Document | Link | |
---|---|---|
1 | MetalLB installation method | https://metallb.universe.tf/installation/ |
2 | MetalLB repository | https://github.com/metallb/metallb |