Kubernetes MetalLB Installation / Ubuntu 18.04 Environment

Kubernetes MetalLB Installation / Ubuntu 18.04 Environment

1. Installation Environment

The installation environment is as follows:

  • Kubernetes 1.12
    • Network Addon : Using cilium
  • Helm
    • Client : v2.13.1
    • Server : v2.13.1
  • MetalLB 0.7.3

2. Network Configuration

[Figure 1] Kubernetes Network

[Figure 1] Kubernetes Network

The network is as follows:

  • Node Network : 10.0.0.0/24
  • LoadBalancer Service IP : 10.0.0.200 ~ 10.0.0.220

3. MetalLB Installation

$ git clone https://github.com/helm/charts.git
$ cd charts/stable/metallb

Get Helm’s Official Stable Chart. MetalLB is currently included in Helm’s Official Stable Chart.

1
2
3
4
5
6
7
8
...
configInline:
  address-pools:
  - name: default
    protocol: layer2
    addresses:
    - 10.0.0.200-10.0.0.220    
...
[File 1] MetalLB Chart's values.yaml

Configure MetalLB. Modify the value.yaml file of the MetalLB Chart as shown in [File 1]. Set MetalLB to ARP Mode and configure the range of LoadBalancer Service IPs.

$ helm install --name metallb --namespace metallb .

Install MetalLB.

4. References