adguard-home

by alekc

Helm chartv4.0.0App 1.0.0GPL-3.0Verified publisher

AdGuard Home network-wide DNS ad and tracker blocker, with declarative /opt/adguardhome/conf bootstrap and automatic upstream version tracking.

About this chart

adguard-home

AdGuard Home network-wide DNS ad and tracker blocker, with declarative /opt/adguardhome/conf bootstrap and automatic upstream version tracking.

AdGuard Home is a network-wide DNS server that blocks ads and trackers before they reach any device on your LAN, no client-side software needed. This chart runs it with a LoadBalancer-exposed DNS service (plain DNS, DoH, DoT) and a persistent config/data volume, seeded from a first-boot default configuration.

Quick start

From the classic chart repository:

helm repo add alekc https://charts.alekc.dev
helm repo update
helm install my-adguard-home alekc/adguard-home \
  --set image.tag=v0.107.79 \
  --set ingress.main.enabled=true

Or directly from the OCI registry, no helm repo add needed:

helm install my-adguard-home oci://charts.alekc.dev/adguard-home --version 2.18.0 \
  --set image.tag=v0.107.79

A minimal working values.yaml:

image:
  tag: "v0.107.79"
ingress:
  main:
    enabled: true
    hosts:
      - host: adguard-home.example.com
        paths:
          - path: /
            pathType: Prefix
            service:
              name: main
              port: main

Verifying the signature

curl -sO https://charts.alekc.dev/pubring.gpg
helm pull oci://charts.alekc.dev/adguard-home --version 2.18.0 --verify --keyring pubring.gpg

Maintainers

NameEmailUrl
alekc[email protected]

Source Code

Requirements

RepositoryNameVersion
https://charts.alekc.devcommon39.0.3

Gotchas

  • Change the default admin password immediately. The bundled configmap.init-config seeds a first-boot config with admin / password123!. It's only used if no config file already exists on the persistence.config volume, so it never overwrites a running instance, but a fresh install is wide open until you log in and change it.
  • securityContext.container.runAsNonRoot: false / runAsUser: 0 are required, not optional, AdGuard Home's own entrypoint needs root privileges. Don't tighten these without testing, the container fails to start otherwise.
  • service.dns defaults to type: LoadBalancer so DNS is reachable from the LAN, not just inside the cluster. Set it to ClusterIP only if something else (a MetalLB-fronted gateway, a NodePort) already exposes port 53 externally.
  • See the common library's own contract and gotchas for image/imageSelector, workload/service defaulting, and the helm-docs comment-placement quirk shared by every chart built on it.

Upgrade notes

No breaking changes yet, appVersion and version track upstream AdGuard Home releases together on every bump.

Values

KeyTypeDefaultDescription
configmap.init-config.data."AdGuardHome.yaml"string"bind_host: 0.0.0.0\nbind_port: 3000\nauth_attempts: 5\nblock_auth_min: 15\nhttp_proxy: \"\"\nlanguage: en\ntheme: auto\nusers:\n - name: admin\n # password123!\n password: $2y$05$CearHYVdSs8xDZxM5HvERuiRzB4NcooBg0xRJ7ZwaukyLIOd1XIQ2\ndns:\n bind_hosts:\n - 0.0.0.0\n port: 53\n anonymize_client_ip: false\n protection_enabled: true\n blocking_mode: default\n blocking_ipv4: \"\"\n blocking_ipv6: \"\"\n blocked_response_ttl: 10\n parental_block_host: family-block.dns.adguard.com\n safebrowsing_block_host: standard-block.dns.adguard.com\n ratelimit: 20\n ratelimit_whitelist: []\n refuse_any: true\n upstream_dns:\n - https://dns10.quad9.net/dns-query\n - https://dns.cloudflare.com/dns-query\n upstream_dns_file: \"\"\n bootstrap_dns:\n - 9.9.9.10\n - 149.112.112.10\n - 2620:fe::10\n - 2620:fe::fe:10\n all_servers: false\n fastest_addr: false\n fastest_timeout: 1s\n allowed_clients: []\n disallowed_clients: []\n blocked_hosts:\n - version.bind\n - id.server\n - hostname.bind\n trusted_proxies:\n - 127.0.0.0/8\n - ::1/128\n cache_size: 4194304\n cache_ttl_min: 0\n cache_ttl_max: 0\n cache_optimistic: false\n # Bounds the optimistic cache if cache_optimistic is ever turned on.\n # The dnsproxy defaults are 12h and 30s, which lets an expired record\n # be served for up to half a day; short-TTL cloud endpoints (ALB,\n # CloudFront) recycle their addresses well inside that window.\n cache_optimistic_max_age: 30m\n cache_optimistic_answer_ttl: 3s\n bogus_nxdomain: []\n aaaa_disabled: false\n enable_dnssec: false\n edns_client_subnet:\n custom_ip: \"\"\n enabled: false\n use_custom: false\n max_goroutines: 300\n handle_ddr: true\n ipset: []\n ipset_file: \"\"\n filtering_enabled: true\n filters_update_interval: 24\n parental_enabled: false\n safesearch_enabled: false\n safebrowsing_enabled: false\n safebrowsing_cache_size: 1048576\n safesearch_cache_size: 1048576\n parental_cache_size: 1048576\n cache_time: 30\n rewrites: []\n blocked_services: []\n upstream_timeout: 10s\n private_networks: []\n use_private_ptr_resolvers: true\n local_ptr_upstreams: []\n use_dns64: false\n dns64_prefixes: []\n serve_http3: false\n use_http3_upstreams: false\ntls:\n enabled: false\n server_name: \"\"\n force_https: false\n port_https: 443\n port_dns_over_tls: 853\n port_dns_over_quic: 853\n port_dnscrypt: 0\n dnscrypt_config_file: \"\"\n allow_unencrypted_doh: false\n certificate_chain: \"\"\n private_key: \"\"\n certificate_path: \"\"\n private_key_path: \"\"\n strict_sni_check: false\nfilters:\n - enabled: true\n url: https://adguardteam.github.io/HostlistsRegistry/assets/filter_1.txt\n name: AdGuard DNS filter\n id: 1\n - enabled: false\n url: https://adguardteam.github.io/HostlistsRegistry/assets/filter_2.txt\n name: AdAway Default Blocklist\n id: 2\nwhitelist_filters: []\nuser_rules: []\ndhcp:\n enabled: false\n interface_name: \"\"\n local_domain_name: lan\n dhcpv4:\n gateway_ip: \"\"\n subnet_mask: \"\"\n range_start: \"\"\n range_end: \"\"\n lease_duration: 86400\n icmp_timeout_msec: 1000\n options: []\n dhcpv6:\n range_start: \"\"\n lease_duration: 86400\n ra_slaac_only: false\n ra_allow_slaac: false\nclients:\n runtime_sources:\n whois: true\n arp: true\n rdns: true\n dhcp: true\n hosts: true\n persistent: []\nlog_compress: false\nlog_localtime: false\nlog_max_backups: 0\nlog_max_size: 100\nlog_max_age: 3\nlog_file: \"\"\nverbose: false\nos:\n group: \"\"\n user: \"\"\n rlimit_nofile: 0\nschema_version: 28\n"Seed AdGuardHome.yaml, copied into the persistent config volume by the init-config init container on first boot only. Ships with a default admin login (admin / password123!), change it on first login, see the README Gotchas section.
configmap.init-config.enabledbooltrueRenders this ConfigMap, holding the first-boot seed config.
fullnameOverridestring"adguard-home"Overrides the chart's fullname, used to name every resource it renders.
image.pullPolicystring"IfNotPresent"Image pull policy.
image.repositorystring"adguard/adguardhome"AdGuard Home container image repository.
image.tagstring"v1.0.0"AdGuard Home container image tag. Renovate bumps this and version together on every upstream release, so this is never a stale snapshot.
ingress.main.enabledboolfalseRenders an Ingress for the admin UI/API service.
ingress.main.hostslist[{"host":"adguard.home","paths":[{"path":"/","pathType":"Prefix","service":{"name":"main","port":"main"}}]}]Ingress host and path rules.
ingress.main.primarybooltrueMarks this as the primary Ingress.
persistence.config.accessModestring"ReadWriteOnce"PVC access mode.
persistence.config.enabledbooltrueRenders this volume.
persistence.config.mountPathstring"/opt/adguardhome/conf"Where the init container and main container mount this volume.
persistence.config.sizestring"10Mi"PVC size for /opt/adguardhome/conf. Small: config only, no logs/data.
persistence.config.targetSelectAllbooltrueMounts this volume on every container in the workload.
persistence.config.typestring"pvc"Volume type.
persistence.data.accessModestring"ReadWriteOnce"PVC access mode.
persistence.data.enabledbooltrueRenders this volume.
persistence.data.sizestring"5Gi"PVC size for /opt/adguardhome/work: query log, stats, filter lists.
persistence.data.targetSelector.main.main.mountPathstring"/opt/adguardhome/work"Mount path for the main container only.
persistence.data.typestring"pvc"Volume type.
persistence.init-config.enabledbooltrueRenders this volume.
persistence.init-config.mountPathstring"/init-config"Where the init container reads the seed config from.
persistence.init-config.objectNamestring"init-config"Name of the ConfigMap backing this volume.
persistence.init-config.targetSelector.main.init-configobject{}
persistence.init-config.typestring"configmap"Volume type.
securityContext.container.UMASKstring"0077"File creation mask applied inside the container.
securityContext.container.runAsGroupint0Container GID. Must stay 0, see the runAsNonRoot note above.
securityContext.container.runAsNonRootboolfalseAdGuard Home requires root privileges due to a bug in their code; setting this false makes the entrypoint fail as a non-root user.
securityContext.container.runAsUserint0Container UID. Must stay 0, see the runAsNonRoot note above.
service.dns.enabledbooltrueRenders the DNS-facing service.
service.dns.ports.dns-https.enabledbooltrueRenders this port.
service.dns.ports.dns-https.portint443DNS-over-HTTPS port.
service.dns.ports.dns-https.protocolstring"https"Port protocol.
service.dns.ports.dns-tcp.enabledbooltrueRenders this port.
service.dns.ports.dns-tcp.portint53Plain DNS over TCP.
service.dns.ports.dns-tcp.protocolstring"tcp"Port protocol.
service.dns.ports.dns-udp.enabledbooltrueRenders this port.
service.dns.ports.dns-udp.portint53Plain DNS over UDP, what most clients actually use.
service.dns.ports.dns-udp.protocolstring"udp"Port protocol.
service.dns.ports.tls-tcp.enabledbooltrueRenders this port.
service.dns.ports.tls-tcp.portint853DNS-over-TLS port.
service.dns.ports.tls-tcp.protocolstring"tcp"Port protocol.
service.dns.typestring"LoadBalancer"Service type. LoadBalancer exposes DNS/DoH/DoT/DoQ on the LAN via MetalLB, ClusterIP would make DNS unreachable outside the cluster.
service.main.enabledbooltrueRenders the HTTP admin/API service.
service.main.ports.main.enabledbooltrueRenders this port.
service.main.ports.main.portint3000HTTP admin UI / API port.
service.main.ports.main.primarybooltrueMarks this as the primary port.
service.main.ports.main.protocolstring"http"Port protocol, used for probe/ingress defaulting.
service.main.primarybooltrueMarks this as the primary Service (the one Ingress attaches to).
workload.main.enabledbooltrueRenders the primary workload.
workload.main.podSpec.containers.main.enabledbooltrueRenders this container.
workload.main.podSpec.containers.main.imageSelectorstring"image"Root-level values key the common library resolves this container's image from.
workload.main.podSpec.containers.main.primarybooltrueMarks this as the workload's primary container.
workload.main.podSpec.initContainers.init-config.commandlist["sh","-c","if [ ! -f /opt/adguardhome/conf/AdGuardHome.yaml ]; then\n echo \"Config file not found, copying initial configuration...\"\n cp /init-config/AdGuardHome.yaml /opt/adguardhome/conf/AdGuardHome.yaml\n echo \"Initial configuration copied successfully\"\nelse\n echo \"Config file already exists, skipping initialization\"\nfi\n"]Command copying the seed config into the persistent volume.
workload.main.podSpec.initContainers.init-config.enabledbooltrueSeeds AdGuardHome.yaml from the configmap.init-config data on first boot only; leaves an existing config file untouched.
workload.main.podSpec.initContainers.init-config.image.repositorystring"busybox"Init container image repository.
workload.main.podSpec.initContainers.init-config.image.tagstring"latest"Init container image tag.
workload.main.podSpec.initContainers.init-config.typestring"init"Init container type, see the common library's contract.
workload.main.typestring"Deployment"Workload kind: Deployment or StatefulSet.

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 v4.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