loadbalancer-controller
A Helm chart for the LoadBalancer Controller (loadbalancer-controller + keepalived-grpc)
About this chart
LoadBalancer Controller
LoadBalancer Controller by AppsCode - A Helm chart for the LoadBalancer Controller (loadbalancer-controller + keepalived-grpc)
TL;DR;
$ helm repo add appscode https://charts.appscode.com/stable/
$ helm repo update
$ helm search repo appscode/loadbalancer-controller --version=v0.2.0-ac
$ helm upgrade -i loadbalancer-controller appscode/loadbalancer-controller -n loadbalancer-controller --create-namespace --version=v0.2.0-ac
Introduction
This chart deploys a LoadBalancer controller on a Kubernetes cluster using the Helm package manager.
Prerequisites
- Kubernetes 1.28+
Installing the Chart
To install/upgrade the chart with the release name loadbalancer-controller:
$ helm upgrade -i loadbalancer-controller appscode/loadbalancer-controller -n loadbalancer-controller --create-namespace --version=v0.2.0-ac
The command deploys a LoadBalancer controller on the Kubernetes cluster in the default configuration. The configuration section lists the parameters that can be configured during installation.
Tip: List all releases using
helm list
Uninstalling the Chart
To uninstall the loadbalancer-controller:
$ helm uninstall loadbalancer-controller -n loadbalancer-controller
The command removes all the Kubernetes components associated with the chart and deletes the release.
Configuration
The following table lists the configurable parameters of the loadbalancer-controller chart and their default values.
| Parameter | Description | Default |
|---|---|---|
| nameOverride | "" | |
| fullnameOverride | "" | |
| mode | ------------------------------------------------------------------- Mode: "openstack" or "harvester" In harvester mode, a kubeconfig secret is mounted. The openstack-creds secret is needed in BOTH modes: the controller always manages Neutron ports and trunks. ------------------------------------------------------------------- | harvester # openstack | harvester |
| loadbalancerController.replicaCount | 2 | |
| loadbalancerController.image.repository | ghcr.io/kontainercloud/loadbalancer-controller | |
| loadbalancerController.image.tag | v0.2.0-ac | |
| loadbalancerController.image.pullPolicy | IfNotPresent | |
| loadbalancerController.serviceAccountName | loadbalancer-controller | |
| loadbalancerController.env.osTenantId | mode=openstack only. Each node gets an extra "trunk parent" port, created here and hot-attached to the node's Nova server; the node's own port is not used. Use a dedicated network/subnet for it, separate from the load balancer networks. osNetworkId and osSubnetId are REQUIRED in openstack mode (osSubnetId must belong to osNetworkId); osTenantId is the project the ports are created in. Ignored in harvester mode. | "" |
| loadbalancerController.env.osNetworkId | "" | |
| loadbalancerController.env.osSubnetId | "" | |
| loadbalancerController.env.clusterNamespace | "new" | |
| loadbalancerController.resources | {} | |
| openstackCreds.osAuthUrl | "" | |
| openstackCreds.osUsername | "admin" | |
| openstackCreds.osPassword | "" | |
| openstackCreds.osDomainName | "Default" | |
| openstackCreds.osRegionName | "RegionOne" | |
| openstackCreds.osProjectId | "" | |
| dbCredentials.dbHost | "" | |
| dbCredentials.dbPort | "3306" | |
| dbCredentials.dbUser |
Deploy loadbalancer-controller with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has loadbalancer-controller 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 chartloadbalancer-controller is pinned at v0.2.0-ac 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