metallb
The Metal LB for Kubernetes
About this chart
MetalLB
MetalLB is an open source, rock solid LoadBalancer. It handles the ServiceType: Loadbalancer.
Azure-ready Charts with Containers from marketplace.azurecr.io
This Helm Chart has been configured to pull the Container Images from the Azure Marketplace Public Repository. The following command allows you to download and install all the charts from this repository.
$ helm repo add bitnami-azure https://marketplace.azurecr.io/helm/v1/repo
TL;DR
$ helm repo add bitnami-azure https://marketplace.azurecr.io/helm/v1/repo
$ helm install my-release bitnami-azure/metallb
Introduction
Bitnami charts for Helm are carefully engineered, actively maintained and are the quickest and easiest way to deploy containers on a Kubernetes cluster that are ready to handle production workloads.
This chart bootstraps a MetalLB Controller Controller Deployment and a MetalLB Speaker Daemonset on a Kubernetes cluster using the Helm package manager.
Bitnami charts can be used with Kubeapps for deployment and management of Helm Charts in clusters. This Helm chart has been tested on top of Bitnami Kubernetes Production Runtime (BKPR). Deploy BKPR to get automated TLS certificates, logging and monitoring for your applications.
Prerequisites
- Kubernetes 1.12+
- Helm 3.0-beta3+
- Virtual IPs for Layer 2 or Route Reflector for BGP setup.
Installing the Chart
To install the chart with the release name my-release:
$ helm repo add bitnami-azure https://marketplace.azurecr.io/helm/v1/repo
$ helm install my-release bitnami-azure/metallb
These commands deploy metallb on the Kubernetes cluster in the default configuration. The Parameters section lists the parameters that can be configured during installation.
Tip: List all releases using
helm list
Uninstalling the Chart
To uninstall/delete the my-release helm release:
$ helm uninstall my-release
The command removes all the Kubernetes components associated with the chart and deletes the release.
Parameters
The following tables lists the configurable parameters of the metallb chart and their default values.
Global parameters
| Parameter | Description | Default |
|---|---|---|
global.imageRegistry | Global Docker image registry | nil |
global.imagePullSecrets | Global Docker registry secret names as an array | [] (does not add image pull secrets to deployed pods) |
Common parameters
| Parameter | Description | Default |
|---|---|---|
nameOverride | String to partially override metallb.fullname template with a string (will prepend the release name) | nil |
fullnameOverride | String to fully override metallb.fullname template with a string | nil |
existingConfigMap | Specify an existing configMapName to use. (this is mutually exclusive with the configInline option) | nil |
configInline | Specify the config for metallb as a new configMap inline. | {} (does not create configMap) |
rbac.create | Specify if an rbac authorization should be created with the necessarry Rolebindings. | true |
prometheusRule.enabled | Enable for Prometheus alertmanager basic alerts. | false |
commonLabels | Add common Labels to all Resources of the helmchart | {} |
commonAnnotations | Add common Annotations to all Resources of the helmchart | {} |
networkPolicy.enabled | Enable NetworkPolicy | false |
networkPolicy.ingressNSMatchLabels | Allow connections from other namespaces | {} |
networkPolicy.ingressNSPodMatchLabels | For other namespaces match by pod labels and namespace labels | {} |
Controller parameters
| Parameter | Description | Default |
|---|---|---|
controller.image.registry | MetalLB Controller image registry | docker.io |
controller.image.repository | MetalLB Controller image name | bitnami/metallb-controller |
controller.image.tag | MetalLB Controller image tag | {TAG_NAME} |
controller.image.pullPolicy | MetalLB Controller image pull policy | IfNotPresent |
controller.image.pullSecrets | Specify docker-registry secret names as an array | [] (does not add image pull secrets to deployed pods) |
controller.rbac.create | create specifies whether to install and use RBAC rules. | true |
controller.psp.create | create specifies whether to install Pod Security Policies. | true |
controller.resources.limits | Specify resource limits which the container is not allowed to succeed. | {} (does not add resource limits to deployed pods) |
controller.resources.requests | Specify resource requests which the container needs to spawn. | {} (does not add resource limits to deployed pods) |
controller.nodeSelector | Node labels for controller pod assignment | {} |
controller.tolerations | Tolerations for controller pod assignment | [] |
controller.affinity | Affinity for controller pod assignment | {} |
controller.podAnnotations | Controller Pod annotations | {} |
controller.podLabels | Controller Pod labels | {} |
controller.podAffinityPreset | Controller Pod affinitypreset | "" |
controller.podAntiAffinityPreset | Controller Pod anti affinitypreset | soft |
controller.nodeAffinityPreset.type | Controller Pod Node affinity preset | "" |
controller.nodeAffinityPreset.key | Controller Pod Node affinity label key to match | "" |
controller.nodeAffinityPreset.values | Controller Pod Node affinity label values to match | [] |
controller.serviceAccount.create | create a serviceAccount for the controller pod | true |
controller.serviceAccount.name | use the serviceAccount with the specified name | "" |
controller.revisionHistoryLimit | the revision history limit for the deployment. | 3 |
controller.terminationGracePeriodSeconds | the termination grace period for pods | 0 |
controller.containerPort.metrics | Controller Pod metrics listening port | 7472 |
controller.livenessProbe.enabled | Enable/disable the Liveness probe | true |
controller.livenessProbe.failureThreshold | Delay before liveness probe is initiated | 3 |
controller.livenessProbe.initialDelaySeconds | How often to perform the probe | 10 |
controller.livenessProbe.periodSeconds | When the probe times out | 10 |
controller.livenessProbe.successThreshold | Minimum consecutive successes for the probe to be considered successful after having failed. | 1 |
controller.livenessProbe.timeoutSeconds | Minimum consecutive failures for the probe to be considered failed after having succeeded. | 1 |
controller.readinessProbe.enabled | Enable/disable the Readiness probe | true |
controller.readinessProbe.failureThreshold | Delay before readiness probe is initiated | 3 |
controller.readinessProbe.initialDelaySeconds | How often to perform the probe | 10 |
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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartmetallb is pinned at v2.0.3 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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