unbound

by SavePointSam

Helm chartv1.0.0App 1.15.0Verified publisher

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

NameDescriptionValue
global.imageRegistryGlobal Docker image registry""
global.imagePullSecretsGlobal Docker registry secret names as an array[]
global.storageClassGlobal StorageClass for Persistent Volume(s)""

Common parameters

NameDescriptionValue
kubeVersionOverride Kubernetes version""
nameOverrideString to partially override common.names.name""
fullnameOverrideString to fully override common.names.fullname""
namespaceOverrideString to fully override common.names.namespace""
commonLabelsLabels to add to all deployed objects{}
commonAnnotationsAnnotations to add to all deployed objects{}
clusterDomainKubernetes cluster domain namecluster.local
extraDeployArray of extra objects to deploy with the release[]
diagnosticMode.enabledEnable diagnostic mode (all probes will be disabled and the command will be overridden)false
diagnosticMode.commandCommand to override all containers in the deployment["sleep"]
diagnosticMode.argsArgs to override all containers in the deployment["infinity"]

Unbound Parameters

NameDescriptionValue
unbound.verbosityLogging severity from 0-5 (0 = no logs)1
unbound.numThreadsThe number of threads to create to serve clients (1 = no threading)1
unbound.portThe port number, default 53, on which the server responds to queries.53
unbound.interfaceInterface to use to connect to the network.0.0.0.0@53
unbound.accessControlRulesList 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.forwardingAddressesList 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.registryUnbound image registrydocker.io
unbound.image.repositoryUnbound image repositorysavepointsam/unbound
unbound.image.tagUnbound image tag (immutable tags are recommended)1.15.0
unbound.image.pullPolicyUnbound image pull policyIfNotPresent
unbound.image.pullSecretsUnbound image pull secrets[]
unbound.image.debugEnable Unbound image debug modefalse
unbound.replicaCountNumber of Unbound replicas to deploy1
unbound.containerPorts.dnsUnbound DNS container port53
unbound.livenessProbe.enabledEnable livenessProbe on Unbound containerstrue
unbound.livenessProbe.initialDelaySecondsInitial delay seconds for livenessProbe30
unbound.livenessProbe.periodSecondsPeriod seconds for livenessProbe10
unbound.livenessProbe.timeoutSecondsTimeout seconds for livenessProbe5
unbound.livenessProbe.failureThresholdFailure threshold for livenessProbe10
unbound.livenessProbe.successThresholdSuccess threshold for livenessProbe1
unbound.readinessProbe.enabledEnable readinessProbe on Unbound containerstrue
unbound.readinessProbe.initialDelaySecondsInitial delay seconds for readinessProbe30
unbound.readinessProbe.periodSecondsPeriod seconds for readinessProbe10
unbound.readinessProbe.timeoutSecondsTimeout seconds for readinessProbe5
unbound.readinessProbe.failureThresholdFailure threshold for readinessProbe5
unbound.readinessProbe.successThresholdSuccess threshold for readinessProbe1
unbound.startupProbe.enabledEnable startupProbe on Unbound containersfalse
unbound.startupProbe.initialDelaySecondsInitial delay seconds for startupProbe30
unbound.startupProbe.periodSecondsPeriod seconds for startupProbe10
unbound.startupProbe.timeoutSecondsTimeout seconds for startupProbe5
unbound.startupProbe.failureThresholdFailure threshold for startupProbe20
unbound.startupProbe.successThresholdSuccess threshold for startupProbe1
unbound.customLivenessProbeCustom livenessProbe that overrides the default one{}
unbound.customReadinessProbeCustom readinessProbe that overrides the default one{}
unbound.customStartupProbeCustom 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartunbound is pinned at v1.0.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