bindizr-chart

by kweonminsung

Helm chartv0.2.0App 0.2.0Verified publisher

Bindizr DNS control plane with BIND authoritative DNS pods.

About this chart

bindizr-chart

Deploys Bindizr as a DB-backed DNS control plane with BIND authoritative DNS pods.

CLI / HTTP / nsupdate
        |
        v
Bindizr(DB-backed Control Plane)
        |
        | AXFR / IXFR / NOTIFY
        v
BIND9 Secondary Pods

Install

Create or reference a database Secret:

kubectl create secret generic bindizr-db-secret \
  --from-literal=database-url='postgresql://user:password@postgresql:5432/bindizr'

A database behind TLS is verified with --set bindizr.database.tls.mode=verify-full; a private issuer's certificate goes in a Secret holding ca.crt, named by bindizr.database.tls.existingSecret. A Secret holding tls.crt and tls.key named by bindizr.dns.tls.existingSecret serves zone transfers over TLS (XoT) on port 853.

Install the released OCI chart from Docker Hub. Its default BIND image is amd64-only; the Kubernetes guide shows the tested arm64 image settings:

helm install bindizr oci://registry-1.docker.io/kweonminsung/bindizr-chart \
  --version 0.2.0 \
  --set bindizr.database.existingSecret=bindizr-db-secret

The examples below install from the local chart source instead.

For local testing, the chart can create Secrets from values:

helm install bindizr ./charts \
  --set bindizr.database.url='postgresql://user:password@postgresql:5432/bindizr'

To run a bundled PostgreSQL database for development:

helm install bindizr ./charts --set postgresql.enabled=true

Or a bundled MySQL, which also switches the database type:

helm install bindizr ./charts \
  --set bindizr.database.type=mysql \
  --set mysql.enabled=true

Bindizr UI releases independently. Set bindizrUi.image.tag to a published UI image compatible with this release, then enable it on an existing release:

helm upgrade bindizr ./charts --reuse-values \
  --set bindizrUi.enabled=true \
  --set bindizrUi.image.tag=<ui-tag>

For a new installation, add both UI settings to one of the database-backed helm install commands above. The chart requires an explicit UI tag when the UI is enabled.

To try the chart in a local kind cluster, see examples/kind/.

Notes

  • Bindizr and BIND do not call the Kubernetes API, so the chart creates no Role or RoleBinding.
  • bind9.service.type is LoadBalancer. Where nothing provisions one — kind, bare metal without MetalLB — set it to NodePort, with bind9.service.nodePort to pin the port.
  • The secondaries live in Bindizr's database: a starting bindizr pod registers the BIND pods by their headless names, plus bindizr.dns.extraSecondaries (name and address each), through bindizr secondary create, one already registered takes the chart's address through bindizr secondary update, and the bind9-N rows of replicas scaled away are deleted. Every daemon option has a value under bindizr.*, rendered into the ConfigMap.
  • Non-secret daemon settings come from the ConfigMap; the database URL comes from its Secret through BINDIZR_DATABASE_URL.
  • SQLite is not supported by this Helm chart.
  • nsupdate TSIG keys are managed at runtime: a key is created in a role (POST /tsig-keys with a token, or bindizr tsig-key create <name> --role <role> in the pod), and the role's grants (POST /roles/{name}/grants, or bindizr role grant) decide what it may change. bindizr.dns.nsupdateTsigRequired (default true) accepts unsigned updates when turned off, which is for testing only.
  • BIND accepts NOTIFY from any source: the chart's named.conf sets allow-notify { any; }, and no value narrows it.

Deploy bindizr-chart with OpenTenant

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