bindy

by christianhuth

Helm chartv1.9.4App v0.8.3Verified publisher

Bindy is a Kubernetes operator that manages BIND9 DNS infrastructure declaratively

About this chart

bindy

Bindy is a Kubernetes operator that manages BIND9 DNS infrastructure declaratively

TL;DR;

helm repo add christianhuth https://charts.christianhuth.de
helm repo update
helm install my-release christianhuth/bindy

Or install it from the OCI registry:

helm install my-release oci://ghcr.io/christianhuth/helm-charts/bindy

Introduction

This chart bootstraps Bindy using the Helm package manager.

Prerequisites

  • Kubernetes 1.19+

Installing the Chart

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

helm repo add christianhuth https://charts.christianhuth.de
helm repo update
helm install my-release christianhuth/bindy

The chart is also published as an OCI artifact which can be installed like this:

helm install my-release oci://ghcr.io/christianhuth/helm-charts/bindy

These commands deploy Bindy on the Kubernetes cluster in the default configuration. The Values section lists the values that can be configured during installation.

Tip: List all releases using helm list

Uninstalling the Chart

To uninstall the my-release deployment:

helm uninstall my-release

The command removes all the Kubernetes components associated with the chart and deletes the release.

Values

KeyTypeDefaultDescription
affinityobject{}Affinity settings for pod assignment
autoscaling.enabledboolfalseEnable Horizontal POD autoscaling
autoscaling.maxReplicasint100Maximum number of replicas
autoscaling.minReplicasint1Minimum number of replicas
autoscaling.targetCPUUtilizationPercentageint80Target CPU utilization percentage
config.leaderElection.enabledbooltrueEnable leader election for controller manager
config.leaderElection.leaseDurationSecondsint15Lease duration in seconds
config.leaderElection.leaseNamestring"bindy-leader"Lease name for leader election
config.leaderElection.renewDeadlineSecondsint10Renew deadline in seconds
config.leaderElection.retryPeriodSecondsint2Retry period in seconds
config.log.formatstring"json"Log format: text or json
config.log.levelstring"info"Log level for the controller: error, warn, info, debug, trace
deploymentStrategyobject{}Update strategy for the deployment
extraEnvlist[]additional environment variables to be added to the pods
extraEnvFromlist[]additional environment variables from ConfigMaps or Secrets
fullnameOverridestring""String to fully override "bindy.fullname"
image.pullPolicystring"Always"image pull policy
image.registrystring"ghcr.io"image registry
image.repositorystring"firestoned/bindy"image repository
image.tagstring"v0.8.3"Overrides the image tag
imagePullSecretslist[]If defined, uses a Secret to pull an image from a private Docker registry or repository.
nameOverridestring""Provide a name in place of bindy
nodeSelectorobject{}Node labels for pod assignment
podAnnotationsobject{}Annotations to be added to exporter pods
podSecurityContextobjectsee values.yamlpod-level security context
rbac.adminRole.bindToBindyboolfalseCreate a rolebinding to allow Bindy to delete resources
rbac.adminRole.createboolfalseCreate admin role that enables the deletion of resources
rbac.createbooltrueCreate RBAC resources
replicaCountint1Number of replicas
resourcesobjectsee values.yamlResource limits and requests for the pods.
revisionHistoryLimitint0The number of old ReplicaSets to retain
securityContextobjectsee values.yamlcontainer-level security context
service.portint80Kubernetes port where service is exposed
service.typestring"ClusterIP"Kubernetes service type
serviceAccount.annotationsobject{}Annotations to add to the service account
serviceAccount.createbooltrueSpecifies whether a service account should be created
serviceAccount.namestring""The name of the service account to use. If not set and create is true, a name is generated using the fullname template
serviceMonitor.additionalLabelsobject{}Prometheus ServiceMonitor labels
serviceMonitor.enabledboolfalseEnable a Prometheus ServiceMonitor
serviceMonitor.intervalstring"30s"Prometheus ServiceMonitor interval
serviceMonitor.metricRelabelingslist[]Prometheus [MetricRelabelConfigs] to apply to samples before ingestion
serviceMonitor.namespacestring""Prometheus ServiceMonitor namespace
serviceMonitor.relabelingslist[]Prometheus [RelabelConfigs] to apply to samples before scraping
serviceMonitor.scrapeTimeoutstring""Prometheus ServiceMonitor scrapeTimeout, cannot be longer than the scrape interval
serviceMonitor.selectorobject{}Prometheus ServiceMonitor selector
tolerationslist[]Toleration labels for pod assignment

Specify each parameter using the --set key=value[,key=value] argument to helm install.

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

helm install my-release -f values.yaml christianhuth/bindy

Deploy bindy with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has bindy 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 chartbindy is pinned at v1.9.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