metallb

by joaquinito2051

Helm chartv2.0.3App 0.9.5

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

ParameterDescriptionDefault
global.imageRegistryGlobal Docker image registrynil
global.imagePullSecretsGlobal Docker registry secret names as an array[] (does not add image pull secrets to deployed pods)

Common parameters

ParameterDescriptionDefault
nameOverrideString to partially override metallb.fullname template with a string (will prepend the release name)nil
fullnameOverrideString to fully override metallb.fullname template with a stringnil
existingConfigMapSpecify an existing configMapName to use. (this is mutually exclusive with the configInline option)nil
configInlineSpecify the config for metallb as a new configMap inline.{} (does not create configMap)
rbac.createSpecify if an rbac authorization should be created with the necessarry Rolebindings.true
prometheusRule.enabledEnable for Prometheus alertmanager basic alerts.false
commonLabelsAdd common Labels to all Resources of the helmchart{}
commonAnnotationsAdd common Annotations to all Resources of the helmchart{}
networkPolicy.enabledEnable NetworkPolicyfalse
networkPolicy.ingressNSMatchLabelsAllow connections from other namespaces{}
networkPolicy.ingressNSPodMatchLabelsFor other namespaces match by pod labels and namespace labels{}

Controller parameters

ParameterDescriptionDefault
controller.image.registryMetalLB Controller image registrydocker.io
controller.image.repositoryMetalLB Controller image namebitnami/metallb-controller
controller.image.tagMetalLB Controller image tag{TAG_NAME}
controller.image.pullPolicyMetalLB Controller image pull policyIfNotPresent
controller.image.pullSecretsSpecify docker-registry secret names as an array[] (does not add image pull secrets to deployed pods)
controller.rbac.createcreate specifies whether to install and use RBAC rules.true
controller.psp.createcreate specifies whether to install Pod Security Policies.true
controller.resources.limitsSpecify resource limits which the container is not allowed to succeed.{} (does not add resource limits to deployed pods)
controller.resources.requestsSpecify resource requests which the container needs to spawn.{} (does not add resource limits to deployed pods)
controller.nodeSelectorNode labels for controller pod assignment{}
controller.tolerationsTolerations for controller pod assignment[]
controller.affinityAffinity for controller pod assignment{}
controller.podAnnotationsController Pod annotations{}
controller.podLabelsController Pod labels{}
controller.podAffinityPresetController Pod affinitypreset""
controller.podAntiAffinityPresetController Pod anti affinitypresetsoft
controller.nodeAffinityPreset.typeController Pod Node affinity preset""
controller.nodeAffinityPreset.keyController Pod Node affinity label key to match""
controller.nodeAffinityPreset.valuesController Pod Node affinity label values to match[]
controller.serviceAccount.createcreate a serviceAccount for the controller podtrue
controller.serviceAccount.nameuse the serviceAccount with the specified name""
controller.revisionHistoryLimitthe revision history limit for the deployment.3
controller.terminationGracePeriodSecondsthe termination grace period for pods0
controller.containerPort.metricsController Pod metrics listening port7472
controller.livenessProbe.enabledEnable/disable the Liveness probetrue
controller.livenessProbe.failureThresholdDelay before liveness probe is initiated3
controller.livenessProbe.initialDelaySecondsHow often to perform the probe10
controller.livenessProbe.periodSecondsWhen the probe times out10
controller.livenessProbe.successThresholdMinimum consecutive successes for the probe to be considered successful after having failed.1
controller.livenessProbe.timeoutSecondsMinimum consecutive failures for the probe to be considered failed after having succeeded.1
controller.readinessProbe.enabledEnable/disable the Readiness probetrue
controller.readinessProbe.failureThresholdDelay before readiness probe is initiated3
controller.readinessProbe.initialDelaySecondsHow often to perform the probe10

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 v2.0.3 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