hetzner-dyndns

by itsmethemojo

Helm chartv1.4.0deprecated_GPL-3.0+Verified publisher

A lightweight external-dns operator for hetzner dns. Similar to kubernetes-sigs/external-dns it creates dns entries for ingresses with the external-dns.alpha.kubernetes.io/hostname annotation. It will update your dns entries in a specified interval. To keep it as less code as possible the kubernetes access and the hetzner dns access is all managed via terraform providers.

About this chart

hetzner-dyndns

A lightweight external-dns operator for hetzner dns. Similar to kubernetes-sigs/external-dns it creates dns entries for ingresses with the external-dns.alpha.kubernetes.io/hostname annotation. It will update your dns entries in a specified interval.

To keep it as less code as possible the kubernetes access and the hetzner dns access is all managed via terraform providers.

create ingress annotations for the operator

do not forget the trailing dot when annotating the ingress as it is also used here

helm install my-hetzner-dyndns itsmethemojo/hetzner-dyndns --set dns.domain=my-domain.org --set dns.apiToken=ABC123

kubectl annotate ingress my-ingress-with-dns "external-dns.alpha.kubernetes.io/hostname=nginx.my-domain.org."

update docs

docker run --rm -v $(pwd):/app -w/app jnorwood/helm-docs -t helm-docs-template.gotmpl

additional links

Source Code

Values

KeyTypeDefaultDescription
affinityobject{}
dns.apiTokenstring""hetzner dns api token, see https://dns.hetzner.com/
dns.domainstring"example.com"hetzner dns zone domain
dns.refreshIntervalint300interval in seconds in which DNS records will be synched
dns.ttlint80hetzner dns ttl for entries, different ttl per subdomain via annotation is not yet supported
extendedLoggingboolfalsetoggle debug-like logging
fullnameOverridestring""
helperImage.pullPolicystring"IfNotPresent"
helperImage.repositorystring"alpine"
helperImage.tagfloat3.17
image.pullPolicystring"IfNotPresent"
image.repositorystring"hashicorp/terraform"
image.tagstring"1.9.7"
imagePullSecretslist[]
nameOverridestring""
nodeSelectorobject{}
parallelismint10set the parallelism flag for terraform apply. this can be lowered if the kube api is a small single node
persistence.accessModesstring"ReadWriteOnce"
persistence.storageClassNamestring"local-path"
persistence.storageSizestring"1Gi"
podAnnotationsobject{}
podSecurityContextobject{}
resources.limits.memorystring"128Mi"
resources.requests.cpustring"100m"
resources.requests.memorystring"128Mi"
securityContextobject{}
serviceAccount.annotationsobject{}
serviceAccount.createbooltrue
serviceAccount.namestring""
tolerationslist[]

Autogenerated from chart metadata using helm-docs v1.11.0

Deploy hetzner-dyndns with OpenTenant

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