metallb

by book-k8sinfra

Helm chartv0.1.1App 0.8.2

unofficial helm chart of MetalLB, bare-metal LoadBalancer

About this chart

This is educational purpose chart for metallb

MetalLB hooks into your Kubernetes cluster, and provides a network load-balancer implementation. In short, it allows you to create Kubernetes services of type LoadBalancer in clusters that don’t run on a cloud provider, and thus cannot simply hook into paid products to provide load balancers.

⚠️ Caution: It supports MetalLB version 8 or less.

TL;DR

$ helm repo add edu https://iac-source.github.io/helm-charts
$ helm repo update

Install the Chart

$ helm install metallb edu/metallb \
--namespace=metallb-system \
--create-namespace \
--set controller.tag=<Version> \
--set speaker.tag=<Version> \
--set configmap.ipRange=<IP Range> 

Uninstall the Chart

$ helm uninstall metallb

Deploy metallb with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has metallb on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartmetallb is pinned at v0.1.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply