hetzner-dyndns
by itsmethemojo
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
- Hetzner DNS API console to create the API token
- Chart on Artifact HUB
- hetznerdns terraform provider on github or terraform.io
- kubernetes terraform provider on github or terraform.io
Source Code
Values
| Key | Type | Default | Description |
|---|---|---|---|
| affinity | object | {} | |
| dns.apiToken | string | "" | hetzner dns api token, see https://dns.hetzner.com/ |
| dns.domain | string | "example.com" | hetzner dns zone domain |
| dns.refreshInterval | int | 300 | interval in seconds in which DNS records will be synched |
| dns.ttl | int | 80 | hetzner dns ttl for entries, different ttl per subdomain via annotation is not yet supported |
| extendedLogging | bool | false | toggle debug-like logging |
| fullnameOverride | string | "" | |
| helperImage.pullPolicy | string | "IfNotPresent" | |
| helperImage.repository | string | "alpine" | |
| helperImage.tag | float | 3.17 | |
| image.pullPolicy | string | "IfNotPresent" | |
| image.repository | string | "hashicorp/terraform" | |
| image.tag | string | "1.9.7" | |
| imagePullSecrets | list | [] | |
| nameOverride | string | "" | |
| nodeSelector | object | {} | |
| parallelism | int | 10 | set the parallelism flag for terraform apply. this can be lowered if the kube api is a small single node |
| persistence.accessModes | string | "ReadWriteOnce" | |
| persistence.storageClassName | string | "local-path" | |
| persistence.storageSize | string | "1Gi" | |
| podAnnotations | object | {} | |
| podSecurityContext | object | {} | |
| resources.limits.memory | string | "128Mi" | |
| resources.requests.cpu | string | "100m" | |
| resources.requests.memory | string | "128Mi" | |
| securityContext | object | {} | |
| serviceAccount.annotations | object | {} | |
| serviceAccount.create | bool | true | |
| serviceAccount.name | string | "" | |
| tolerations | list | [] |
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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the charthetzner-dyndns is pinned at v1.4.0 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