adguard-home

by rtomik

Helm chartv0.0.2App v0.107.79Verified publisher

AdGuard Home helm chart for Kubernetes - Network-wide ad and tracker blocking DNS server

About this chart

AdGuard Home Helm Chart

A Helm chart for deploying AdGuard Home, a network-wide DNS ad and tracker blocker, on Kubernetes.

Introduction

This chart deploys AdGuard Home on a Kubernetes cluster using the Helm package manager. AdGuard Home is a self-hosted DNS server that blocks ads and trackers for every device on your network, and can also act as a DHCP server, DNS-over-TLS/HTTPS/QUIC resolver, and DNSCrypt server.

Source code: https://github.com/rtomik/helm-charts/tree/main/charts/adguard-home

Prerequisites

  • Kubernetes 1.19+
  • Helm 3.0+
  • PV provisioner support (if persistence is needed)
  • A way to route real LAN clients to the DNS Service (LoadBalancer/MetalLB, NodePort, or hostNetwork: true) if you intend to use it as your network's resolver

Installing the Chart

helm repo add rtomik https://rtomik.github.io/helm-charts
helm install adguard-home rtomik/adguard-home

Uninstalling the Chart

helm uninstall adguard-home

Configuration Examples

Minimal Installation (admin UI only, no DNS exposed on the LAN)

persistence:
  work:
    enabled: true
    size: 2Gi
  conf:
    enabled: true
    size: 100Mi

ingress:
  enabled: true
  hosts:
    - host: adguard.example.com
      paths:
        - path: /
          pathType: Prefix
  tls:
    - hosts:
        - adguard.example.com
      secretName: adguard-tls

Expose DNS to the LAN via LoadBalancer (e.g. MetalLB)

service:
  type: LoadBalancer
  loadBalancerIP: 192.168.1.53
  annotations:
    metallb.universe.tf/allow-shared-ip: adguard-home

hostNetwork: true  # preserves real client IPs in the query log/filters

Enable DNS-over-TLS / DNS-over-QUIC and DNS-over-HTTPS

ports:
  dot:
    enabled: true
  https:
    enabled: true

Enable the DHCP server

DHCP requires hostNetwork: true - it cannot be proxied through a ClusterIP/LoadBalancer Service.

hostNetwork: true
ports:
  dhcp:
    enabled: true

Use an existing PVC

persistence:
  work:
    existingClaim: "adguard-work-pvc"
  conf:
    existingClaim: "adguard-conf-pvc"

Parameters

Global Parameters

NameDescriptionDefault
nameOverrideOverride the release name""
fullnameOverrideFully override the release name""

Image Parameters

NameDescriptionDefault
image.repositoryAdGuard Home image repositoryadguard/adguardhome
image.tagImage tagv0.107.79
image.pullPolicyImage pull policyIfNotPresent
imagePullSecretsImage pull secrets[]

Deployment Parameters

NameDescriptionDefault
replicaCountNumber of replicas (keep at 1 - AdGuard Home is not multi-writer safe)1
revisionHistoryLimitRevisions to retain3
podSecurityContext.runAsNonRootRun as non-roottrue
podSecurityContext.runAsUserUser ID1000
podSecurityContext.runAsGroupGroup ID1000
podSecurityContext.fsGroupFilesystem group ID1000
containerSecurityContext.capabilities.addCapabilities added (NET_BIND_SERVICE for ports < 1024)["NET_BIND_SERVICE"]
hostNetworkUse host networking (required for DHCP, recommended for accurate client IPs)false
nodeSelectorNode selector{}
tolerationsTolerations[]
affinityAffinity rules{}

Ports Parameters

NameDescriptionDefault
ports.web.portAdmin dashboard / setup wizard3000
ports.dns.portPlain DNS (TCP+UDP)53
ports.dot.enabledEnable DNS-over-TLS / DNS-over-QUICfalse
ports.dot.portDoT/DoQ port (TCP+UDP)853
ports.https.enabledEnable DNS-over-HTTPS / HTTPS admin dashboardfalse
ports.https.portHTTPS port (TCP+UDP)443
ports.dnscrypt.enabledEnable DNSCryptfalse
ports.dnscrypt.portDNSCrypt port (TCP+UDP)5443
ports.dhcp.enabledEnable DHCP server (67/68 UDP, requires hostNetwork: true)false
ports.pprof.enabledEnable the debug pprof APIfalse
ports.pprof.portpprof port6060

Service Parameters

NameDescriptionDefault
service.typeService typeClusterIP
service.annotationsService annotations{}
service.loadBalancerIPStatic LoadBalancer IP (e.g. for MetalLB)""

Ingress Parameters

NameDescriptionDefault
ingress.enabledEnable ingress (routes to the admin dashboard only)false
ingress.classNameIngress class name""
ingress.annotationsIngress annotationsSee values.yaml
ingress.hostsIngress hostsSee values.yaml
ingress.tlsTLS configurationSee values.yaml

Persistence Parameters

NameDescriptionDefault
persistence.work.enabledPersist /opt/adguardhome/work (query log, filter cache, stats)true
persistence.work.existingClaimUse an existing PVC instead of creating one""
persistence.work.storageClassStorage class""
persistence.work.accessModeAccess modeReadWriteOnce
persistence.work.sizePVC size1Gi
persistence.conf.enabledPersist /opt/adguardhome/conf (AdGuardHome.yaml)true
persistence.conf.existingClaimUse an existing PVC instead of creating one""
persistence.conf.storageClassStorage class""
persistence.conf.accessModeAccess modeReadWriteOnce
persistence.conf.sizePVC size100Mi

Resource Parameters

NameDescriptionDefault
resourcesResource limits and requests{}

Health Check Parameters

NameDescriptionDefault
probes.liveness.enabledEnable liveness probe (TCP check on the admin web port)true
probes.liveness.initialDelaySecondsLiveness initial delay15
probes.liveness.periodSecondsLiveness period30
probes.readiness.enabledEnable readiness probe (TCP check on the admin web port)true
probes.readiness.initialDelaySecondsReadiness initial delay5
probes.readiness.periodSecondsReadiness period10

Other Parameters

NameDescriptionDefault
extraEnvAdditional environment variables[]
extraVolumeMountsAdditional volume mounts[]
extraVolumesAdditional volumes[]

Notes

  • AdGuard Home has no supported way to bootstrap its admin account or DNS settings via environment variables - complete the setup wizard once at http://<web-service>:3000 after the first install. The resulting AdGuardHome.yaml is written to the conf PVC, so it survives pod restarts/upgrades.
  • Because AdGuard Home stores state on disk and isn't multi-writer safe, do not scale replicaCount beyond 1.
  • If you plan to use this as your network's DNS resolver, prefer hostNetwork: true (or a LoadBalancer Service with externalTrafficPolicy: Local) so AdGuard Home sees real client IPs rather than a single Service/NAT IP for every device.

Troubleshooting

  • Clients all show up as the same IP / filters by client don't work: enable hostNetwork or use externalTrafficPolicy: Local on a LoadBalancer Service.
  • DHCP doesn't hand out leases: DHCP only works with hostNetwork: true.
  • Setup wizard settings don't persist: verify persistence.conf.enabled is true and the PVC is bound.
kubectl logs -f deployment/adguard-home
kubectl describe pod -l app.kubernetes.io/name=adguard-home

Links

Deploy adguard-home with OpenTenant

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