powerdns-recursor

by KlickTipp

Helm chartv0.4.15App 5.4.9Verified publisher

Helm chart for deploying PowerDNS Recursor on Kubernetes

About this chart

powerdns-recursor

Helm chart for deploying PowerDNS Recursor on Kubernetes

Homepage: https://github.com/klicktipp/helm-charts

Source Code

Values

KeyTypeDefaultDescription
replicaCountint1Number of pod replicas. Ignored in DaemonSet mode.
revisionHistoryLimitint10Number of old ReplicaSets to retain. Used by both Deployment and DaemonSet histories.
workloadobject{"daemonSet":{"minReadySeconds":5,"updateStrategy":{"rollingUpdate":{"maxSurge":"","maxUnavailable":0},"type":"RollingUpdate"}},"type":"Deployment"}Workload configuration.
workload.typestring"Deployment"Workload kind. Supported values: Deployment, DaemonSet.
workload.daemonSet.updateStrategyobject{"rollingUpdate":{"maxSurge":"","maxUnavailable":0},"type":"RollingUpdate"}DaemonSet-only settings. Ignored when workload.type=Deployment.
workload.daemonSet.updateStrategy.typestring"RollingUpdate"DaemonSet update strategy type.
workload.daemonSet.updateStrategy.rollingUpdate.maxUnavailableint0Keep the existing pod on a node until a surged replacement is ready. Defaults to 0. When transparentDNS.enabled=true, a configured value of 0 (including the default) is treated as 1 to keep the DaemonSet strategy valid; other explicit non-zero values are preserved.
workload.daemonSet.updateStrategy.rollingUpdate.maxSurgestring""Allow one extra pod per node during rolling updates to avoid local DNS gaps. Defaults to 1. When transparentDNS.enabled=true, the empty/default value becomes 0 and any explicit non-zero value will fail validation.
workload.daemonSet.minReadySecondsint5Time a new DaemonSet pod must stay ready before it is considered available.
transparentDNSobject{"additionalForwardZones":[],"captureOutput":true,"clusterDNS":{"namespace":"kube-system","selector":{"k8s-app":"kube-dns"},"serviceIP":"","upstreamService":{"annotations":{},"clusterIP":"","create":true,"name":""}},"clusterDomain":"cluster.local","customClusterDNSIP":"","enabled":false,"interceptor":{"image":{"pullPolicy":"IfNotPresent","repository":"ghcr.io/klicktipp/pdns-transparent-dns","tag":"0.1.3"}},"localIP":"169.254.20.10","preStopSleepSeconds":null,"resources":{"limits":{"memory":"128Mi"},"requests":{"cpu":"25m","memory":"128Mi"}},"securityContext":{"capabilities":{"add":["NET_ADMIN"]},"runAsGroup":0,"runAsUser":0},"setupIptables":true,"takeoverClusterIP":true,"tolerations":[{"key":"CriticalAddonsOnly","operator":"Exists"},{"effect":"NoExecute","operator":"Exists"},{"effect":"NoSchedule","operator":"Exists"}]}Optional transparent DNS takeover mode. Experimental. Binds a dedicated node-local DNS IP on each node and can optionally also take over the existing cluster DNS Service IP.
transparentDNS.enabledboolfalseEnable node-local DNS takeover mode. Experimental. Requires workload.type=DaemonSet. This mode defaults workload.daemonSet.updateStrategy.rollingUpdate.maxSurge to 0; any explicit non-zero value will fail validation. The chart always binds transparentDNS.localIP on each node, runs PowerDNS on port 53, and programs NOTRACK/ACCEPT rules. It can additionally try to take over transparentDNS.clusterDNS.serviceIP when transparentDNS.takeoverClusterIP=true. If service.enabled=true and service.clusterIP is set, that primary Service IP is also added as a listen/bind address. If service.local.enabled=true and service.local.clusterIP is set, that local-only Service IP is added as an additional listen/bind address.
transparentDNS.localIPstring"169.254.20.10"Dedicated node-local DNS IP to bind on each node. Uses the same IP on every node. Adjust this if 169.254.20.10 is already in use in your cluster, for example by an existing node-local-dns deployment.
transparentDNS.takeoverClusterIPbooltrueAlso try to bind and intercept the existing kube-dns/CoreDNS Service IP on each node. Disable this on environments where the ClusterIP cannot be bound locally, for example some IPVS-based or otherwise restricted setups.
transparentDNS.clusterDomainstring"cluster.local"Cluster DNS domain still forwarded to CoreDNS. Required when transparentDNS.enabled=true.
transparentDNS.additionalForwardZoneslist[]Additional internal DNS zones that should still be forwarded to CoreDNS in transparent DNS mode, for example cloud-provider internal zones such as compute.internal, google.internal, or ec2.internal.
transparentDNS.clusterDNS.namespacestring"kube-system"Namespace where the cluster DNS pods live and, by default, where the optional auxiliary upstream Service is created. Required when transparentDNS.enabled=true. If this differs from the Helm release namespace, the install/upgrade identity must be allowed to create and manage Services in that namespace.
transparentDNS.clusterDNS.serviceIPstring""ClusterIP of the kube-dns/CoreDNS Service that pods already use today. Required when transparentDNS.enabled=true and transparentDNS.takeoverClusterIP=true.
transparentDNS.clusterDNS.upstreamService.createbooltrueCreate an auxiliary Service with its own fixed ClusterIP in front of the CoreDNS pods to avoid recursion through the intercepted clusterDNS.serviceIP. When enabled, the Helm install/upgrade identity must be allowed to create and manage that Service in transparentDNS.clusterDNS.namespace.
transparentDNS.clusterDNS.upstreamService.namestring""Override the generated upstream Service name.
transparentDNS.clusterDNS.upstreamService.clusterIPstring""Fixed ClusterIP of the auxiliary CoreDNS upstream Service. Required when transparentDNS.enabled=true, customClusterDNSIP is empty, and upstreamService.create=true.
transparentDNS.clusterDNS.upstreamService.annotationsobject{}Service annotations for the auxiliary CoreDNS upstream Service.
transparentDNS.clusterDNS.selectorobject{"k8s-app":"kube-dns"}Pod selector for the auxiliary CoreDNS upstream Service. Required when transparentDNS.enabled=true, customClusterDNSIP is empty, and upstreamService.create=true.
transparentDNS.customClusterDNSIPstring""Use a pre-existing auxiliary CoreDNS upstream Service IP instead of creating one. Required when transparentDNS.enabled=true and upstreamService.create=false.
transparentDNS.interceptor.image.repositorystring"ghcr.io/klicktipp/pdns-transparent-dns"Image used for the transparent DNS init/interceptor containers.
transparentDNS.interceptor.image.tagstring"0.1.3"Image tag of the transparent DNS init/interceptor image.
transparentDNS.interceptor.image.pullPolicystring"IfNotPresent"Pull policy for the interceptor helper image.
transparentDNS.preStopSleepSecondsintnilDeprecated, use preStopSleepSeconds. When set, it overrides preStopSleepSeconds in transparent DNS mode.
transparentDNS.setupIptablesbooltrueConfigure the local IP aliases plus raw/filter iptables rules required for the transparent DNS mode.
transparentDNS.captureOutputbooltrueAlso configure raw OUTPUT rules for node-local processes hitting the node-local DNS IP and, when enabled, the cluster DNS Service IP.
transparentDNS.securityContext.runAsUserint0Run the interceptor as root so it can manipulate networking.
transparentDNS.securityContext.runAsGroupint0Run the interceptor with the root group.
transparentDNS.tolerationslist[{"key":"CriticalAddonsOnly","operator":"Exists"},{"effect":"NoExecute","operator":"Exists"},{"effect":"NoSchedule","operator":"Exists"}]Default tolerations used only when transparentDNS.enabled=true and tolerations is empty.
imagePullSecretslist[]Image pull secrets.
nameOverridestring""Partially override generated resource names.
fullnameOverridestring""Fully override generated resource names.
serviceAccountobject{"annotations":{},"automountServiceAccountToken":false,"create":true,"name":""}ServiceAccount configuration.
serviceAccount.createbooltrueCreate a dedicated ServiceAccount.
serviceAccount.annotationsobject{}ServiceAccount annotations.
serviceAccount.namestring""Explicit ServiceAccount name. If empty, a name is generated.
serviceAccount.automountServiceAccountTokenboolfalseMount API token into pods.
podAnnotationsobject{}Extra annotations added to the pod template.
podLabelsobject{}Extra labels added to the pod template.
podSecurityContextobject{"runAsGroup":953,"runAsUser":953}Pod-level security context.
podSecurityContext.runAsUserint953Unix user id.
podSecurityContext.runAsGroupint953Unix group id.
securityContextobject{"runAsGroup":953,"runAsUser":953}Container-level security context.
securityContext.runAsUserint953Unix user id. Transparent DNS mode overrides this to root so PowerDNS can bind port 53 before dropping privileges internally via recursor setuid/setgid.
securityContext.runAsGroupint953Unix group id. Transparent DNS mode overrides this to root.
priorityClassNamestring""Optional priority class for pods. When transparentDNS.enabled=true and this value is empty, the chart defaults to "system-node-critical".
podAntiAffinityobject{"topologyKey":"kubernetes.io/hostname","type":"soft"}Pod anti-affinity shortcut (used when affinity is empty).
podAntiAffinity.typestring"soft""soft", "hard" or "disabled". Ignored in DaemonSet mode.
podAntiAffinity.topologyKeystring"kubernetes.io/hostname"Topology key used by anti-affinity.
affinityobject{}Native affinity rules. If set, this overrides podAntiAffinity.
nodeSelectorobject{}Node selector for scheduling.
tolerationslist[]Tolerations for scheduling.
podDisruptionBudgetobject{}PodDisruptionBudget spec snippet. Example: { maxUnavailable: 1 }. Ignored in DaemonSet mode.
serviceobject{"annotations":{},"clusterIP":"","enabled":true,"headless":{"annotations":{},"enabled":false,"includeDnsPorts":true,"publishNotReadyAddresses":false},"loadBalancerIP":"","loadBalancerSourceRanges":[],"local":{"annotations":{},"clusterIP":"","enabled":false},"port":53,"type":"ClusterIP"}Service configuration.
service.enabledbooltrueCreate the primary cluster-wide Service. Disable this in transparent DNS setups when you do not want an additional global ClusterIP for PowerDNS.
service.typestring"ClusterIP"Service type.
service.clusterIPstring""Optional fixed ClusterIP for the primary Service.
service.portint53DNS service port (TCP/UDP).
service.annotationsobject{}Service annotations.
service.loadBalancerIPstring""Optional fixed LoadBalancer IP.
service.loadBalancerSourceRangeslist[]Optional source ranges for LoadBalancer services.
service.localobject{"annotations":{},"clusterIP":"","enabled":false}Optional DaemonSet-local Service for node-local DNS traffic.
service.local.enabledboolfalseCreate an additional DaemonSet-local ClusterIP Service with internalTrafficPolicy=Local. Requires workload.type=DaemonSet and an explicit service.local.clusterIP so the transparent DNS helper can bind and intercept that IP deterministically.
service.local.clusterIPstring""Fixed ClusterIP for the local-only Service. Required when service.local.enabled=true.
service.local.annotationsobject{}Annotations for the local-only Service.
service.headlessobject{"annotations":{},"enabled":false,"includeDnsPorts":true,"publishNotReadyAddresses":false}Optional headless Service for direct pod DNS records.
service.headless.enabledboolfalseEnable creation of an additional headless Service (-headless).
service.headless.annotationsobject{}Headless Service annotations.
service.headless.includeDnsPortsbooltrueInclude DNS TCP/UDP ports on the headless Service.
service.headless.publishNotReadyAddressesboolfalsePublish endpoints even for not-ready pods.
ingressobject{"annotations":{},"className":"","enabled":false,"hosts":[{"host":"chart-example.local","paths":[{"path":"/","pathType":"Prefix"}]}],"tls":[]}Ingress for the PowerDNS API endpoint (requires pdns.api.enabled=true).
ingress.enabledboolfalseEnable ingress.
ingress.classNamestring""ingressClassName value.
ingress.annotationsobject{}Ingress annotations.
ingress.hostslist[{"host":"chart-example.local","paths":[{"path":"/","pathType":"Prefix"}]}]Host/path rules.
ingress.tlslist[]TLS sections.
podMonitorobject{"additionalLabels":{},"enabled":false,"interval":"60s","jobLabel":"","path":"","relabelings":[],"scheme":"","scrapeTimeout":""}PodMonitor configuration. Backward compatible: can also be boolean.
podMonitor.enabledboolfalseEnable PodMonitor creation.
podMonitor.additionalLabelsobject{}Extra labels for PodMonitor metadata.
podMonitor.intervalstring"60s"Scrape interval.
podMonitor.scrapeTimeoutstring""Optional scrape tim

Deploy powerdns-recursor with OpenTenant

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