adguard-home
by alekc
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
| Name | Url | |
|---|---|---|
| alekc | [email protected] |
Source Code
Requirements
| Repository | Name | Version |
|---|---|---|
| https://charts.alekc.dev | common | 39.0.3 |
Gotchas
- Change the default admin password immediately. The bundled
configmap.init-configseeds a first-boot config withadmin/password123!. It's only used if no config file already exists on thepersistence.configvolume, 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: 0are required, not optional, AdGuard Home's own entrypoint needs root privileges. Don't tighten these without testing, the container fails to start otherwise.service.dnsdefaults totype: LoadBalancerso DNS is reachable from the LAN, not just inside the cluster. Set it toClusterIPonly 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/servicedefaulting, 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
| Key | Type | Default | Description |
|---|---|---|---|
| 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.enabled | bool | true | Renders this ConfigMap, holding the first-boot seed config. |
| fullnameOverride | string | "adguard-home" | Overrides the chart's fullname, used to name every resource it renders. |
| image.pullPolicy | string | "IfNotPresent" | Image pull policy. |
| image.repository | string | "adguard/adguardhome" | AdGuard Home container image repository. |
| image.tag | string | "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.enabled | bool | false | Renders an Ingress for the admin UI/API service. |
| ingress.main.hosts | list | [{"host":"adguard.home","paths":[{"path":"/","pathType":"Prefix","service":{"name":"main","port":"main"}}]}] | Ingress host and path rules. |
| ingress.main.primary | bool | true | Marks this as the primary Ingress. |
| persistence.config.accessMode | string | "ReadWriteOnce" | PVC access mode. |
| persistence.config.enabled | bool | true | Renders this volume. |
| persistence.config.mountPath | string | "/opt/adguardhome/conf" | Where the init container and main container mount this volume. |
| persistence.config.size | string | "10Mi" | PVC size for /opt/adguardhome/conf. Small: config only, no logs/data. |
| persistence.config.targetSelectAll | bool | true | Mounts this volume on every container in the workload. |
| persistence.config.type | string | "pvc" | Volume type. |
| persistence.data.accessMode | string | "ReadWriteOnce" | PVC access mode. |
| persistence.data.enabled | bool | true | Renders this volume. |
| persistence.data.size | string | "5Gi" | PVC size for /opt/adguardhome/work: query log, stats, filter lists. |
| persistence.data.targetSelector.main.main.mountPath | string | "/opt/adguardhome/work" | Mount path for the main container only. |
| persistence.data.type | string | "pvc" | Volume type. |
| persistence.init-config.enabled | bool | true | Renders this volume. |
| persistence.init-config.mountPath | string | "/init-config" | Where the init container reads the seed config from. |
| persistence.init-config.objectName | string | "init-config" | Name of the ConfigMap backing this volume. |
| persistence.init-config.targetSelector.main.init-config | object | {} | |
| persistence.init-config.type | string | "configmap" | Volume type. |
| securityContext.container.UMASK | string | "0077" | File creation mask applied inside the container. |
| securityContext.container.runAsGroup | int | 0 | Container GID. Must stay 0, see the runAsNonRoot note above. |
| securityContext.container.runAsNonRoot | bool | false | AdGuard 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.runAsUser | int | 0 | Container UID. Must stay 0, see the runAsNonRoot note above. |
| service.dns.enabled | bool | true | Renders the DNS-facing service. |
| service.dns.ports.dns-https.enabled | bool | true | Renders this port. |
| service.dns.ports.dns-https.port | int | 443 | DNS-over-HTTPS port. |
| service.dns.ports.dns-https.protocol | string | "https" | Port protocol. |
| service.dns.ports.dns-tcp.enabled | bool | true | Renders this port. |
| service.dns.ports.dns-tcp.port | int | 53 | Plain DNS over TCP. |
| service.dns.ports.dns-tcp.protocol | string | "tcp" | Port protocol. |
| service.dns.ports.dns-udp.enabled | bool | true | Renders this port. |
| service.dns.ports.dns-udp.port | int | 53 | Plain DNS over UDP, what most clients actually use. |
| service.dns.ports.dns-udp.protocol | string | "udp" | Port protocol. |
| service.dns.ports.tls-tcp.enabled | bool | true | Renders this port. |
| service.dns.ports.tls-tcp.port | int | 853 | DNS-over-TLS port. |
| service.dns.ports.tls-tcp.protocol | string | "tcp" | Port protocol. |
| service.dns.type | string | "LoadBalancer" | Service type. LoadBalancer exposes DNS/DoH/DoT/DoQ on the LAN via MetalLB, ClusterIP would make DNS unreachable outside the cluster. |
| service.main.enabled | bool | true | Renders the HTTP admin/API service. |
| service.main.ports.main.enabled | bool | true | Renders this port. |
| service.main.ports.main.port | int | 3000 | HTTP admin UI / API port. |
| service.main.ports.main.primary | bool | true | Marks this as the primary port. |
| service.main.ports.main.protocol | string | "http" | Port protocol, used for probe/ingress defaulting. |
| service.main.primary | bool | true | Marks this as the primary Service (the one Ingress attaches to). |
| workload.main.enabled | bool | true | Renders the primary workload. |
| workload.main.podSpec.containers.main.enabled | bool | true | Renders this container. |
| workload.main.podSpec.containers.main.imageSelector | string | "image" | Root-level values key the common library resolves this container's image from. |
| workload.main.podSpec.containers.main.primary | bool | true | Marks this as the workload's primary container. |
| workload.main.podSpec.initContainers.init-config.command | list | ["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.enabled | bool | true | Seeds 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.repository | string | "busybox" | Init container image repository. |
| workload.main.podSpec.initContainers.init-config.image.tag | string | "latest" | Init container image tag. |
| workload.main.podSpec.initContainers.init-config.type | string | "init" | Init container type, see the common library's contract. |
| workload.main.type | string | "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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartadguard-home is pinned at v4.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