unbound
by SavePointSam
A Helm chart to deploy unbound on Kubernetes
About this chart
unbound
Unbound is a validating, recursive, caching DNS resolver. It is designed to be fast and lean and incorporates modern features based on open standards. You can learn more about Unbound by reading their documentation.
TL;DR
$ helm repo add savepointsam https://savepointsam.github.io/charts
$ helm install my-release savepointsam/unbound
Introduction
This chart bootstraps a unbound deployment on a Kubernetes cluster using the Helm package manager.
Prerequisites
- Kubernetes 1.20+
- Helm 3.2.0+
Installing the Chart
To install the chart with the release name my-release:
helm install my-release savepointsam/unbound
The command deploys unbound on the Kubernetes cluster in the default configuration. The Parameters section lists the parameters that can be configured during installation.
Tip: List all releases using
helm list
Uninstalling the Chart
To uninstall/delete the my-release deployment:
helm delete my-release
The command removes all the Kubernetes components associated with the chart and deletes the release.
Parameters
Global parameters
| Name | Description | Value |
|---|---|---|
global.imageRegistry | Global Docker image registry | "" |
global.imagePullSecrets | Global Docker registry secret names as an array | [] |
global.storageClass | Global StorageClass for Persistent Volume(s) | "" |
Common parameters
| Name | Description | Value |
|---|---|---|
kubeVersion | Override Kubernetes version | "" |
nameOverride | String to partially override common.names.name | "" |
fullnameOverride | String to fully override common.names.fullname | "" |
namespaceOverride | String to fully override common.names.namespace | "" |
commonLabels | Labels to add to all deployed objects | {} |
commonAnnotations | Annotations to add to all deployed objects | {} |
clusterDomain | Kubernetes cluster domain name | cluster.local |
extraDeploy | Array of extra objects to deploy with the release | [] |
diagnosticMode.enabled | Enable diagnostic mode (all probes will be disabled and the command will be overridden) | false |
diagnosticMode.command | Command to override all containers in the deployment | ["sleep"] |
diagnosticMode.args | Args to override all containers in the deployment | ["infinity"] |
Unbound Parameters
| Name | Description | Value |
|---|---|---|
unbound.verbosity | Logging severity from 0-5 (0 = no logs) | 1 |
unbound.numThreads | The number of threads to create to serve clients (1 = no threading) | 1 |
unbound.port | The port number, default 53, on which the server responds to queries. | 53 |
unbound.interface | Interface to use to connect to the network. | 0.0.0.0@53 |
unbound.accessControlRules | List of IP netblocks and control action (e.g: deny, refuse, allow, allow_setrd, allow_snoop, deny_non_local, or refuse_non_local) | ["127.0.0.1/32 allow","192.168.0.0/16 allow","172.16.0.0/12 allow","10.0.0.0/8 allow"] |
unbound.forwardingAddresses | List of IP addresses for the server to forward to | ["1.1.1.1@853#cloudflare-dns.com","1.0.0.1@853#cloudflare-dns.com"] |
unbound.image.registry | Unbound image registry | docker.io |
unbound.image.repository | Unbound image repository | savepointsam/unbound |
unbound.image.tag | Unbound image tag (immutable tags are recommended) | 1.15.0 |
unbound.image.pullPolicy | Unbound image pull policy | IfNotPresent |
unbound.image.pullSecrets | Unbound image pull secrets | [] |
unbound.image.debug | Enable Unbound image debug mode | false |
unbound.replicaCount | Number of Unbound replicas to deploy | 1 |
unbound.containerPorts.dns | Unbound DNS container port | 53 |
unbound.livenessProbe.enabled | Enable livenessProbe on Unbound containers | true |
unbound.livenessProbe.initialDelaySeconds | Initial delay seconds for livenessProbe | 30 |
unbound.livenessProbe.periodSeconds | Period seconds for livenessProbe | 10 |
unbound.livenessProbe.timeoutSeconds | Timeout seconds for livenessProbe | 5 |
unbound.livenessProbe.failureThreshold | Failure threshold for livenessProbe | 10 |
unbound.livenessProbe.successThreshold | Success threshold for livenessProbe | 1 |
unbound.readinessProbe.enabled | Enable readinessProbe on Unbound containers | true |
unbound.readinessProbe.initialDelaySeconds | Initial delay seconds for readinessProbe | 30 |
unbound.readinessProbe.periodSeconds | Period seconds for readinessProbe | 10 |
unbound.readinessProbe.timeoutSeconds | Timeout seconds for readinessProbe | 5 |
unbound.readinessProbe.failureThreshold | Failure threshold for readinessProbe | 5 |
unbound.readinessProbe.successThreshold | Success threshold for readinessProbe | 1 |
unbound.startupProbe.enabled | Enable startupProbe on Unbound containers | false |
unbound.startupProbe.initialDelaySeconds | Initial delay seconds for startupProbe | 30 |
unbound.startupProbe.periodSeconds | Period seconds for startupProbe | 10 |
unbound.startupProbe.timeoutSeconds | Timeout seconds for startupProbe | 5 |
unbound.startupProbe.failureThreshold | Failure threshold for startupProbe | 20 |
unbound.startupProbe.successThreshold | Success threshold for startupProbe | 1 |
unbound.customLivenessProbe | Custom livenessProbe that overrides the default one | {} |
unbound.customReadinessProbe | Custom readinessProbe that overrides the default one | {} |
unbound.customStartupProbe | Custom startupProbe that overrides the default one |
Deploy unbound with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has unbound 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 chartunbound is pinned at v1.0.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