metallb

by joaquinito2051

Helm chartv0.9.5App 0.7.3

MetalLB is a load-balancer implementation for bare metal Kubernetes clusters

About this chart

MetalLB

MetalLB is a load-balancer implementation for bare metal [Kubernetes][k8s-home] clusters, using standard routing protocols.

TL;DR;

$ helm install --name metallb <helm-repo>/metallb

$ helm install --name metallb stable/metallb Introduction

This chart bootstraps a [MetalLB][metallb-home] installation on a [Kubernetes][k8s-home] cluster using the [Helm][helm-home] package manager. This chart provides an implementation for LoadBalancer Service objects.

MetalLB is a cluster service, and as such can only be deployed as a cluster singleton. Running multiple installations of MetalLB in a single cluster is not supported.

Prerequisites

  • Kubernetes 1.9+

Installing the Chart

The chart can be installed as follows:

$ helm install --name metallb <helm-repo>/metallb

$ helm install --name metallb stable/metallb The command deploys MetalLB on the Kubernetes cluster. This chart does not provide a default configuration; MetalLB will not act on your Kubernetes Services until you provide one. The configuration section lists various ways to provide this configuration.

Uninstalling the Chart

To uninstall/delete the metallb deployment:

$ helm delete metallb

The command removes all the Kubernetes components associated with the chart, but will not remove the release metadata from helm — this will prevent you, for example, if you later try to create a release also named metallb). To fully delete the release and release history, simply [include the --purge flag][helm-usage]:

$ helm delete --purge metallb

Configuration

See values.yaml for configuration notes. Specify each parameter using the --set key=value[,key=value] argument to helm install. For example,

$ helm install --name metallb \
  --set rbac.create=false \
    <helm-repo>/metallb
$ helm install --name metallb \

The above command disables the use of RBAC rules.

Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart. For example,

$ helm install --name metallb -f values.yaml <helm-repo>/metallb

$ helm install --name metallb -f values.yaml stable/metallb By default, this chart does not install a configuration for MetalLB, and simply warns you that you must follow [the configuration instructions on MetalLB's website][metallb-config] to create an appropriate ConfigMap.

If you have a more complex configuration and want Helm to manage it for you, you can provide it in the config parameter. The configuration format is [documented on MetalLB's website][metallb-config].

$ cat values.yaml
configInline:
  peers:
  - peer-address: 10.0.0.1
    peer-asn: 64512
    my-asn: 64512
  address-pools:
  - name: default
    protocol: bgp
    addresses:
    - 198.51.100.0/24

$ helm install --name metallb -f values.yaml <helm-repo>/metallb

$ helm install --name metallb -f values.yaml stable/metallb [helm-home]: https://helm.sh [helm-usage]: https://docs.helm.sh/using_helm/ [k8s-home]: https://kubernetes.io [metallb-arpndp-concepts]: https://metallb.universe.tf/concepts/arp-ndp/ [metallb-config]: https://metallb.universe.tf/configuration/ [metallb-home]: https://metallb.universe.tf

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.9.5 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