Install MetalLB - anavarrocloud/kubernetes GitHub Wiki

Prepare Cluster for MetalLB

kubectl edit configmap -n kube-system kube-proxy

Configure the following

apiVersion: kubeproxy.config.k8s.io/v1alpha1
kind: KubeProxyConfiguration
mode: "ipvs"
ipvs:
  strictARP: true

Install Official MetalLb Configuration to Cluster

kubectl apply -f https://raw.githubusercontent.com/metallb/metallb/v0.15.2/config/manifests/metallb-native.yaml

Install Additonal Configs in accordance to your needs (For me I have some IPs aside out of DHCP for my Cluster)

apiVersion: v1
kind: ConfigMap
metadata:
  namespace: metallb-system
  name: config
data:
  config: |
    address-pools:
    - name: address-pool-1
      protocol: layer2
      addresses:
      - <IP-Address>-<IP-Address>
apiVersion: metallb.io/v1beta1
kind: IPAddressPool
metadata:
  generation: 1
  name: ippool
  namespace: metallb-system
spec:
  addresses:
  - <IP-Address>-<IP-Address>
  autoAssign: true
  avoidBuggyIPs: true

For Most Updated Installation
https://metallb.io/installation/

⚠️ **GitHub.com Fallback** ⚠️