pihole
by nunoferna
Pi-hole v6 DNS with independent replicas, verified policy snapshots and recovery tooling.
About this chart
pihole
Pi-hole v6 DNS with independent replicas, verified policy snapshots and recovery tooling.
Homepage: https://nunoferna.github.io/pihole-helm/
Maintainers
| Name | Url | |
|---|---|---|
| nunoferna | [email protected] | https://github.com/nunoferna |
Source Code
Requirements
Kubernetes: >=1.35.0-0 <1.38.0-0
v2 DNS production profile
Pi-hole replicas use independent retained PVCs and stable StatefulSet identities. Read the migration guide before adopting v2; v1 selectors and storage layouts require a parallel installation. Credentials must come from an existing Secret, an explicit password, or external injection. No credential is generated or printed automatically.
Internal DNS/HTTP/HTTPS ports default to 5353/8080/8443, while Services expose 53/80/443. DNS defaults to a private ClusterIP; explicitly select a load-balancer/NodePort profile and client restrictions. Kubernetes Service values live under services.*, separately from native pihole.ftl values. Load-balancer classes/source ranges and role-scoped explicit egress rules are optional. The stock image retains root startup and a writable root filesystem with reduced capabilities; Kubernetes Restricted compatibility is not claimed.
Policy reconciliation uses the local API, per-PVC ownership journals and immutable retained artifacts. It removes only owned records, protects unmanaged dependencies and gates readiness on the applied revision. For reproducible production filtering, use policy.requirePinnedLists: true and SHA-256 pinned HTTPS subscriptions. Bodies are verified and cached on each PVC; unchanged scheduled checks preserve serving readiness and reuse the cache. See policy lifecycle and encrypted recovery.
helm test checks every replica and the Service over UDP/TCP, plus configured filtering, authentication and metrics samples. Scheduled DNS checks and Prometheus rules are optional. External VIP probes, actual load-balancer/CNI/storage failure behavior, client source-IP preservation and alert delivery remain deployment acceptance tests. HA DNS does not coordinate DHCP leases, histories, sessions or caches.
CI gates the exact reproducible archive across the supported version/architecture matrix, blocking security checks and disposable HA/recovery fixtures. The release workflow is invoked manually after that complete run succeeds; it signs the tested bytes and resumes each distribution destination independently. See validation evidence, security exceptions and release operations.
Examples
The examples/ directory contains ready-to-use values files for common deployment scenarios:
| File | Description |
|---|---|
values-external-secrets.yaml | Integrate with External Secrets Operator to pull Pi-hole credentials from an external provider (Vault, AWS, GCP, Azure, etc.) |
values-monitoring.yaml | Enable the full monitoring stack: standalone Pi-hole Exporter, Prometheus ServiceMonitor, and a Grafana dashboard ConfigMap |
values-vault.yaml | Mount Pi-hole secrets from HashiCorp Vault using the Vault Agent Injector sidecar |
To use an example, pass it alongside your own overrides:
helm install pihole nunoferna/pihole \
-f examples/values-monitoring.yaml \
-f my-values.yaml
Values
Metrics
| Key | Type | Default | Description |
|---|---|---|---|
| metrics.dashboards.enabled | boolean | false | Whether to create Grafana dashboard resources for the Pi-hole metrics exporter. Requires metrics.service.enabled to be true. |
| metrics.enabled | boolean | false | Whether to enable the Pi-hole metrics exporter. Provides Prometheus metrics on port 9617. Required for any metrics-related features (ServiceMonitor, Grafana dashboards, etc.). |
| metrics.image.repository | string | "ekofr/pihole-exporter" | Container image for the Pi-hole metrics exporter. |
| metrics.podSecurityContext | object | {"runAsNonRoot":true,"seccompProfile":{"type":"RuntimeDefault"}} | Pod security context for the metrics exporter. Defaults follow Pod Security Standards Restricted controls where compatible. |
| metrics.port | integer | 9617 | Port on which the metrics exporter will listen. |
| metrics.securityContext | object | {"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true,"runAsNonRoot":true,"seccompProfile":{"type":"RuntimeDefault"}} | Container security context for the metrics exporter. Defaults follow Pod Security Standards Restricted controls. |
| metrics.serviceMonitor.enabled | boolean | false | Whether to create a ServiceMonitor resource for Prometheus Operator integration. |
K8S Services
| Key | Type | Default | Description |
|---|---|---|---|
| metrics.service.enabled | boolean | true | Metrics Kubernetes Service. Required for external access to metrics endpoint. (port 9617) |
| services.dhcp.enabled | boolean | false | DHCP Kubernetes Service. Required for external access to DHCP functionality (port 67). |
| services.dhcpv6.enabled | boolean | false | DHCPv6 Kubernetes Service. Required for external access to DHCPv6 functionality (port 547). |
| services.dns.enabled | boolean | true | DNS Kubernetes Service. Required for external access to DNS functionality (port 53). |
| services.dns.splitTcpUdp | boolean | false | Whether to create separate Kubernetes Services for TCP and UDP DNS ports. |
| services.ntp.enabled | boolean | false | NTP Kubernetes Service. Required for external access to NTP functionality (port 123). |
| services.web.enabled | boolean | true | Web Kubernetes Service. Required for external access to the Pi-hole web interface. (port 80/443) |
Clients
| Key | Type | Default | Description |
|---|---|---|---|
| pihole.clients | array | [] | List of Pi-hole clients. Each client can be identified by an IPv4 address, IPv6 address, or MAC address. |
Database
| Key | Type | Default | Description |
|---|---|---|---|
| pihole.ftl.database.DBimport | boolean | true | Should FTL load information from the database on startup to be aware of the most recent history? |
| pihole.ftl.database.DBinterval | integer | 60 | Database update interval in seconds. |
| pihole.ftl.database.maxDBdays | integer | 91 | Maximum number of days to keep database entries. |
| pihole.ftl.database.network.expire | integer | 91 | Number of days after which an entry in the ARP cache is considered stale. |
| pihole.ftl.database.network.parseARPcache | boolean | true | Whether to parse the ARP cache. |
| pihole.ftl.database.useWAL | boolean | true | Whether to use WAL (Write-Ahead Logging) for the database. |
DHCP
| Key | Type | Default | Description |
|---|---|---|---|
| pihole.ftl.dhcp.active | boolean | false | No description provided. |
| pihole.ftl.dhcp.end | string | "" | No description provided. |
| pihole.ftl.dhcp.hosts | array | [] | No description provided. |
| pihole.ftl.dhcp.ignoreUnknownClients | boolean | false | No description provided. |
| pihole.ftl.dhcp.leaseTime | string | "" | No description provided. |
| pihole.ftl.dhcp.logging | boolean | false | No description provided. |
| pihole.ftl.dhcp.multiDNS | boolean | false | No description provided. |
| pihole.ftl.dhcp.netmask | string | "" | No description provided. |
| pihole.ftl.dhcp.rapidCommit | boolean | false | No description provided. |
| pihole.ftl.dhcp.router | string | "" | No description provided. |
| pihole.ftl.dhcp.start | string | "" | No description provided. |
DNS
| Key | Type | Default | Description |
|---|---|---|---|
| pihole.ftl.dns.CNAMEdeepInspect | boolean | true | No description provided. |
| pihole.ftl.dns.EDNS0ECS | boolean | true | No description provided. |
| pihole.ftl.dns.analyzeOnlyAandAAAA | boolean | false | No description provided. |
| pihole.ftl.dns.blockESNI | boolean | true | No description provided. |
| pihole.ftl.dns.blockTTL | integer | 2 | No description provided. |
| pihole.ftl.dns.blocking.active | boolean | true | No description provided. |
| pihole.ftl.dns.blocking.edns | string | "TEXT" | Options: https://docs.pi-hole.net/ftldns/configfile/#edns |
| pihole.ftl.dns.blocking.mode | string | "NULL" | Options: https://docs.pi-hole.net/ftldns/configfile/#mode |
| pihole.ftl.dns.bogusPriv | boolean | true | No description provided. |
| pihole.ftl.dns.cache.optimizer | integer | 3600 | No description provided. |
| pihole.ftl.dns.cache.size | integer | 10000 | No description provided. |
| pihole.ftl.dns.cache.upstreamBlockedTTL | integer | 86400 | No description provided. |
| pihole.ftl.dns.cnameRecords | array | [] | No description provided. |
| pihole.ftl.dns.dnssec | boolean | false | No description provided. |
| pihole.ftl.dns.domain.local | boolean | true | No description provided. |
| pihole.ftl.dns.domain.name | string | "lan" | No description provided. |
| pihole.ftl.dns.domainNeeded | boolean | false | No description provided. |
| pihole.ftl.dns.expandHosts | boolean | false | No description provided. |
| pihole.ftl.dns.hostRecord | string | "" | No description provided. |
| pihole.ftl.dns.hosts | array | [] | No description provided. |
| pihole.ftl.dns.ignoreLocalhost | boolean | false | No description provided. |
| pihole.ftl.dns.interface | string | "" | No description provided. |
| pihole.ftl.dns.listeningMode | string | "ALL" | Accept Kubernetes Service/pod traffic. Restrict DNS clients with NetworkPolicy and private service exposure. |
| pihole.ftl.dns.localise | boolean | true | No description provided. |
| pihole.ftl.dns.piholePTR | string | "PI.HOLE" | Options: https://docs.pi-hole.net/ftldns/configfile/#piholeptr |
| pihole.ftl.dns.port | integer | 53 | No description provided. |
| pihole.ftl.dns.queryLogging | boolean | true | No description provided. |
| pihole.ftl.dns.rateLimit.count | integer | 1000 | No description provided. |
| pihole.ftl.dns.rateLimit.interval | integer | 60 | No description provided. |
| pihole.ftl.dns.reply.blocking.IPv4 | string | "" | No description provided. |
| pihole.ftl.dns.reply.blocking.IPv6 | string | "" | No description provided. |
| pihole.ftl.dns.reply.blocking.force4 | boolean | false | No description provided. |
| pihole.ftl.dns.reply.blocking.force6 | boolean | false | No description provided. |
| pihole.ftl.dns.reply.host.IPv4 | string | "" | No description provided. |
| pihole.ftl.dns.reply.host.IPv6 | string | "" | No description provided. |
| pihole.ftl.dns.reply.host.force4 | boolean | false | No description provided. |
| pihole.ftl.dns.reply.host.force6 | boolean | false | No description provided. |
| pihole.ftl.dns.replyWhenBusy | string | "ALLOW" | Options: https://docs.pi-hole.net/ftldns/configfile/#replywhenbusy |
| pihole.ftl.dns.revServers | array | [] | No description provided. |
| pihole.ftl.dns.showDNSSEC | boolean | true | No description provided. |
| pihole.ftl.dns.specialDomains.designatedResolver | boolean | true | No description provided. |
| pihole.ftl.dns.specialDomains.iCloudPrivateRelay | boolean | true | No description provided. |
| pihole.ftl.dns.specialDomains.mozillaCanary | boolean | true | No description provided. |
| pihole.ftl.dns.upstreams | array | [8.8.8.8, 8.8.4.4] | List of upstream DNS servers. |
Advanced
| Key | Type | Default | Description |
|---|---|---|---|
| pihole.ftl.files.database | string | "/etc/pihole/pihole-FTL.db" | No description provided. |
| pihole.ftl.files.gravity | string | "/etc/pihole/gravity.db" | No description provided. |
| pihole.ftl.files.gravity_tmp | string | "/tmp" | No description provided. |
| pihole.ftl.files.log.dnsmasq | string | "/var/log/pihole/pihole.log" | No description provided. |
| pihole.ftl.files.log.ftl | string | "/var/log/pihole/FTL.log" | No description provided. |
| pihole.ftl.files.log.webserver | string | "/var/log/pihole/webserver.log" | No description provided. |
| pihole.ftl.files.macvendor | string | "/etc/pihole/macvendor.db" | No description provided. |
| pihole.ftl.files.pcap | string | "" | No description provided. |
| pihole.ftl.misc.addr2line | boolean | true | No description provided. |
| pihole.ftl.misc.check.disk | integer | 90 | No description provided. |
| pihole.ftl.misc.check.load | boolean | true | No description provided. |
| pihole.ftl.misc.check.shmem | integer | 90 | No description provided. |
| pihole.ftl.misc.delay_startup | integer | 0 | No description provided. |
| pihole.ftl.misc.dnsmasq_lines | array | [] | No description provided. |
| pihole.ftl.misc.etc_dnsmasq_d | boolean | false | No description provided. |
| pihole.ftl.misc.extraLogging | boolean | false | No description provided. |
| pihole.ftl.misc.hide_dnsmasq_warn | boolean | false | No description provided. |
| pihole.ftl.misc.nice | integer | -10 | No description provided. |
| pihole.ftl.misc.normalizeCPU | boolean | true | No description provided. |
| pihole.ftl.misc.privacylevel | integer | 0 | No description provided. |
| pihole.ftl |
Deploy pihole with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has pihole 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 chartpihole is pinned at v2.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