adguard-home
by harish2k01
Deploys AdGuard Home DNS filtering on Kubernetes
About this chart
AdGuard Home Helm Chart
Browse the Helm chart catalog to explore available charts and installation commands.
This chart deploys AdGuard Home using the official container image, with persistent work and configuration storage, DNS service ports, and optional Ingress or Gateway API HTTPRoute access for the web UI.
[!NOTE] This is an unofficial community Helm chart maintained by harish2k01. It is not affiliated with or endorsed by the upstream project. For chart issues, questions, or improvements, please open an issue in the harish2k01/helm-charts repository.
Install
helm repo add harish2k01 https://charts.harish2k01.in
helm repo update
helm install adguard-home harish2k01/adguard-home
Install From OCI
This chart is also published as an OCI chart in GHCR. Use the same values and namespace flags with the OCI reference:
helm install adguard-home oci://ghcr.io/harish2k01/helm-charts/adguard-home --version 0.2.2
First Run
The default service exposes TCP 3000 for initial setup/admin UI and TCP/UDP 53 for DNS.
kubectl -n default port-forward svc/adguard-home 3000:3000
Then open http://127.0.0.1:3000/.
Expose DNS
Use a LoadBalancer service when clients outside the cluster should use AdGuard Home as a DNS resolver.
service:
type: LoadBalancer
externalTrafficPolicy: Local
annotations:
metallb.universe.tf/loadBalancerIPs: 192.168.1.53
Optional Ports
Add matching service.ports and containerPorts entries for optional AdGuard Home features such as the post-setup admin UI on port 80, DNS-over-TLS, DNS-over-QUIC, DNSCrypt, or DHCP.
service:
ports:
- name: http
port: 80
targetPort: http
protocol: TCP
- name: dns-tcp
port: 53
targetPort: dns-tcp
protocol: TCP
- name: dns-udp
port: 53
targetPort: dns-udp
protocol: UDP
- name: dot
port: 853
targetPort: dot
protocol: TCP
containerPorts:
- name: http
containerPort: 80
protocol: TCP
- name: dns-tcp
containerPort: 53
protocol: TCP
- name: dns-udp
containerPort: 53
protocol: UDP
- name: dot
containerPort: 853
protocol: TCP
livenessProbe:
tcpSocket:
port: http
readinessProbe:
tcpSocket:
port: http
Install With Gateway API HTTPRoute
httpRoutes:
main:
enabled: true
parentRefs:
- name: gateway
namespace: gateway-system
sectionName: https
hostnames:
- adguard.example.com
Install With Ingress
ingress:
enabled: true
className: nginx
hosts:
- host: adguard.example.com
paths:
- path: /
pathType: Prefix
tls:
- secretName: adguard-home-tls
hosts:
- adguard.example.com
Persistence
The official image uses separate work and configuration directories. This chart creates one PVC and mounts those directories from separate folders inside that claim.
persistence:
size: 3Gi
work:
subPath: work
conf:
subPath: conf
To reuse an existing PVC:
persistence:
existingClaim: adguard-home-data
work:
subPath: work
conf:
subPath: conf
Values
| Key | Type | Default | Description |
|---|---|---|---|
replicaCount | int | 1 | Number of AdGuard Home replicas |
image.repository | string | adguard/adguardhome | Container image repository |
image.tag | string | v0.107.80 | Container image tag |
image.pullPolicy | string | IfNotPresent | Container pull policy |
service.type | string | ClusterIP | Kubernetes Service type |
service.annotations | object | {} | Service annotations |
service.externalTrafficPolicy | string | "" | External traffic policy for NodePort or LoadBalancer services |
service.ports | list | HTTP setup and DNS ports | Service ports to expose |
containerPorts | list | HTTP setup and DNS ports | Container ports exposed by the pod |
persistence.existingClaim | string | "" | Existing PVC to reuse for all AdGuard Home data |
persistence.size | string | 3Gi | Data PVC size |
persistence.storageClassName | string | "" | StorageClass for the data PVC |
persistence.work.mountPath | string | /opt/adguardhome/work | Work directory mount path |
persistence.work.subPath | string | work | PVC directory mounted at /opt/adguardhome/work |
persistence.conf.mountPath | string | /opt/adguardhome/conf | Configuration directory mount path |
persistence.conf.subPath | string | conf | PVC directory mounted at /opt/adguardhome/conf |
ingress.enabled | bool | false | Create a Kubernetes Ingress for the web UI |
httpRoutes.main.enabled | bool | false | Create a Gateway API HTTPRoute for the web UI |
livenessProbe | object | TCP check on http-setup | Container liveness probe |
readinessProbe | object | TCP check on http-setup | Container readiness probe |
resources | object | {} | Container resource requests and limits |
nodeSelector | object | {} | Pod node selector |
tolerations | list | [] | Pod tolerations |
affinity | object | {} | Pod affinity |
Upgrade history
See CHANGELOG.md for application changes and compatibility notes.
Multiple HTTPRoutes
Use httpRoutes to define one or more routes, each with its own Gateway
references, hostnames, annotations, and rules. The default main entry is disabled.
httpRoutes:
internal:
parentRefs:
- name: internal-gateway
namespace: ingress
sectionName: https
hostnames: [app.internal.example.com]
external:
parentRefs:
- name: external-gateway
namespace: ingress
sectionName: https
hostnames: [app.example.com]
Each map key is a lowercase DNS label of up to 40 characters and becomes the
resource-name suffix (<app-fullname>-internal, for example). Long base names are
shortened to keep the suffix and stay within 63 characters; collisions fail rendering.
| Key | Default | Description |
|---|---|---|
httpRoutes | Disabled main entry | Named HTTPRoutes; defaults create no routes. |
httpRoutes.<name>.enabled | true | Set false to omit an entry, including its attachments. |
httpRoutes.<name>.parentRefs | Required when enabled | Gateway references, with optional namespace and listener section. |
httpRoutes.<name>.hostnames | Required when enabled | Independent explicit hostname list. |
httpRoutes.<name>.annotations | {} | Per-route annotations. |
httpRoutes.<name>.rules | Path prefix / | Gateway API matches and filters. Backend references are always supplied by the chart using its application Service and HTTP port. |
Each route has independent hostnames, attachments, annotations, and rules. Chart-specific backend behavior is retained; Ghost also includes its ActivityPub endpoints when enabled. Gateway API CRDs and a compatible controller are required; the referenced Gateway must allow attachment from this namespace.
Migration from the single-route option
httpRoute has been removed. Move its settings under httpRoutes.main and remove
the old key entirely, including httpRoute.enabled: false. Old values fail
rendering with a migration message instead of silently dropping traffic. The old
resource <app-fullname> is replaced by <app-fullname>-main; coordinate the
upgrade with your GitOps pruning policy to avoid overlapping or missing routes.
Multiple hostnames and parent references apply to the whole route; use separate
entries when each hostname group must attach to a different Gateway.
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 v0.2.2 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