labelsmanager-controller

by Delivery Hero

Helm chartv1.0.4App 1.0.0Verified publisher

This is a simple [Kubernetes Controller](https://kubernetes.io/docs/concepts/architecture/controller/) that injects required default labels into pods on creation. Here's an example `Labels` resource: ```yaml apiVersion: labels.deliveryhero.com/v1beta1 kind: Labels metadata: name: labels-sample spec: priority: 1 # labels with highest priority takes precendence labels: country: DE env: stg region: eu ```

About this chart

labelsmanager-controller

This is a simple Kubernetes Controller that injects required default labels into pods on creation.

Here's an example Labels resource:

apiVersion: labels.deliveryhero.com/v1beta1
kind: Labels
metadata:
name: labels-sample
spec:
priority: 1 # labels with highest priority takes precendence
labels:
    country: DE
    env: stg
    region: eu

Homepage: https://github.com/deliveryhero/labelsmanager-controller

How to install this chart

A simple install with default values, latest chart version and generated name:

helm install --generate-name oci://ghcr.io/deliveryhero/helm-charts/labelsmanager-controller

To install a specific version of this chart:

helm install --generate-name oci://ghcr.io/deliveryhero/helm-charts/labelsmanager-controller --version 1.0.4

To install the chart with the release name my-release:

helm install my-release oci://ghcr.io/deliveryhero/helm-charts/labelsmanager-controller

To install with some set values:

helm install my-release oci://ghcr.io/deliveryhero/helm-charts/labelsmanager-controller --set values_key1=value1 --set values_key2=value2

To install with custom values file:

helm install my-release oci://ghcr.io/deliveryhero/helm-charts/labelsmanager-controller -f values.yaml

Source Code

Values

KeyTypeDefaultDescription
affinityobject{}
controller.leaderElectionboolfalseEnable leader election for running multiple controller pods
controller.metricAddrstring"0"Address to serve prometheus metrics on. "0" is disabled.
controller.overwriteboolfalseOverwrite any similar label on the pod.
controller.productionbooltrueThe log level of the controller. enable for json logs
extraLabelsobject{}
fullnameOverridestring""
image.pullPolicystring"IfNotPresent"
image.repositorystring"thomasnyambati/labelsmanager-controller"
image.tagstring""
imagePullSecretslist[]
nameOverridestring""
nodeSelectorobject{}
podAnnotationsobject{}
podLabels.enabledboolfalse
podLabels.labelsobject{}
podSecurityContextobject{}
replicaCountint1
resourcesobject{}
securityContextobject{}
tolerationslist[]

Maintainers

NameEmailUrl
nyambati[email protected]

Chart source and versions

Chart source: github.com/deliveryhero/helm-charts/labelsmanager-controller

Older chart versions: github.com/deliveryhero/helm-charts/pkgs/container/helm-charts/labelsmanager-controller

Deploy labelsmanager-controller with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has labelsmanager-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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartlabelsmanager-controller is pinned at v1.0.4 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