pihole

by nunoferna

Helm chartv2.0.0App 2026.11.0Apache-2.0Verified publisher

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

NameEmailUrl
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:

FileDescription
values-external-secrets.yamlIntegrate with External Secrets Operator to pull Pi-hole credentials from an external provider (Vault, AWS, GCP, Azure, etc.)
values-monitoring.yamlEnable the full monitoring stack: standalone Pi-hole Exporter, Prometheus ServiceMonitor, and a Grafana dashboard ConfigMap
values-vault.yamlMount 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

KeyTypeDefaultDescription
metrics.dashboards.enabledbooleanfalseWhether to create Grafana dashboard resources for the Pi-hole metrics exporter. Requires metrics.service.enabled to be true.
metrics.enabledbooleanfalseWhether 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.repositorystring"ekofr/pihole-exporter"Container image for the Pi-hole metrics exporter.
metrics.podSecurityContextobject{"runAsNonRoot":true,"seccompProfile":{"type":"RuntimeDefault"}}Pod security context for the metrics exporter. Defaults follow Pod Security Standards Restricted controls where compatible.
metrics.portinteger9617Port on which the metrics exporter will listen.
metrics.securityContextobject{"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.enabledbooleanfalseWhether to create a ServiceMonitor resource for Prometheus Operator integration.

K8S Services

KeyTypeDefaultDescription
metrics.service.enabledbooleantrueMetrics Kubernetes Service. Required for external access to metrics endpoint. (port 9617)
services.dhcp.enabledbooleanfalseDHCP Kubernetes Service. Required for external access to DHCP functionality (port 67).
services.dhcpv6.enabledbooleanfalseDHCPv6 Kubernetes Service. Required for external access to DHCPv6 functionality (port 547).
services.dns.enabledbooleantrueDNS Kubernetes Service. Required for external access to DNS functionality (port 53).
services.dns.splitTcpUdpbooleanfalseWhether to create separate Kubernetes Services for TCP and UDP DNS ports.
services.ntp.enabledbooleanfalseNTP Kubernetes Service. Required for external access to NTP functionality (port 123).
services.web.enabledbooleantrueWeb Kubernetes Service. Required for external access to the Pi-hole web interface. (port 80/443)

Clients

KeyTypeDefaultDescription
pihole.clientsarray[]List of Pi-hole clients. Each client can be identified by an IPv4 address, IPv6 address, or MAC address.

Database

KeyTypeDefaultDescription
pihole.ftl.database.DBimportbooleantrueShould FTL load information from the database on startup to be aware of the most recent history?
pihole.ftl.database.DBintervalinteger60Database update interval in seconds.
pihole.ftl.database.maxDBdaysinteger91Maximum number of days to keep database entries.
pihole.ftl.database.network.expireinteger91Number of days after which an entry in the ARP cache is considered stale.
pihole.ftl.database.network.parseARPcachebooleantrueWhether to parse the ARP cache.
pihole.ftl.database.useWALbooleantrueWhether to use WAL (Write-Ahead Logging) for the database.

DHCP

KeyTypeDefaultDescription
pihole.ftl.dhcp.activebooleanfalseNo description provided.
pihole.ftl.dhcp.endstring""No description provided.
pihole.ftl.dhcp.hostsarray[]No description provided.
pihole.ftl.dhcp.ignoreUnknownClientsbooleanfalseNo description provided.
pihole.ftl.dhcp.leaseTimestring""No description provided.
pihole.ftl.dhcp.loggingbooleanfalseNo description provided.
pihole.ftl.dhcp.multiDNSbooleanfalseNo description provided.
pihole.ftl.dhcp.netmaskstring""No description provided.
pihole.ftl.dhcp.rapidCommitbooleanfalseNo description provided.
pihole.ftl.dhcp.routerstring""No description provided.
pihole.ftl.dhcp.startstring""No description provided.

DNS

KeyTypeDefaultDescription
pihole.ftl.dns.CNAMEdeepInspectbooleantrueNo description provided.
pihole.ftl.dns.EDNS0ECSbooleantrueNo description provided.
pihole.ftl.dns.analyzeOnlyAandAAAAbooleanfalseNo description provided.
pihole.ftl.dns.blockESNIbooleantrueNo description provided.
pihole.ftl.dns.blockTTLinteger2No description provided.
pihole.ftl.dns.blocking.activebooleantrueNo description provided.
pihole.ftl.dns.blocking.ednsstring"TEXT"Options: https://docs.pi-hole.net/ftldns/configfile/#edns
pihole.ftl.dns.blocking.modestring"NULL"Options: https://docs.pi-hole.net/ftldns/configfile/#mode
pihole.ftl.dns.bogusPrivbooleantrueNo description provided.
pihole.ftl.dns.cache.optimizerinteger3600No description provided.
pihole.ftl.dns.cache.sizeinteger10000No description provided.
pihole.ftl.dns.cache.upstreamBlockedTTLinteger86400No description provided.
pihole.ftl.dns.cnameRecordsarray[]No description provided.
pihole.ftl.dns.dnssecbooleanfalseNo description provided.
pihole.ftl.dns.domain.localbooleantrueNo description provided.
pihole.ftl.dns.domain.namestring"lan"No description provided.
pihole.ftl.dns.domainNeededbooleanfalseNo description provided.
pihole.ftl.dns.expandHostsbooleanfalseNo description provided.
pihole.ftl.dns.hostRecordstring""No description provided.
pihole.ftl.dns.hostsarray[]No description provided.
pihole.ftl.dns.ignoreLocalhostbooleanfalseNo description provided.
pihole.ftl.dns.interfacestring""No description provided.
pihole.ftl.dns.listeningModestring"ALL"Accept Kubernetes Service/pod traffic. Restrict DNS clients with NetworkPolicy and private service exposure.
pihole.ftl.dns.localisebooleantrueNo description provided.
pihole.ftl.dns.piholePTRstring"PI.HOLE"Options: https://docs.pi-hole.net/ftldns/configfile/#piholeptr
pihole.ftl.dns.portinteger53No description provided.
pihole.ftl.dns.queryLoggingbooleantrueNo description provided.
pihole.ftl.dns.rateLimit.countinteger1000No description provided.
pihole.ftl.dns.rateLimit.intervalinteger60No description provided.
pihole.ftl.dns.reply.blocking.IPv4string""No description provided.
pihole.ftl.dns.reply.blocking.IPv6string""No description provided.
pihole.ftl.dns.reply.blocking.force4booleanfalseNo description provided.
pihole.ftl.dns.reply.blocking.force6booleanfalseNo description provided.
pihole.ftl.dns.reply.host.IPv4string""No description provided.
pihole.ftl.dns.reply.host.IPv6string""No description provided.
pihole.ftl.dns.reply.host.force4booleanfalseNo description provided.
pihole.ftl.dns.reply.host.force6booleanfalseNo description provided.
pihole.ftl.dns.replyWhenBusystring"ALLOW"Options: https://docs.pi-hole.net/ftldns/configfile/#replywhenbusy
pihole.ftl.dns.revServersarray[]No description provided.
pihole.ftl.dns.showDNSSECbooleantrueNo description provided.
pihole.ftl.dns.specialDomains.designatedResolverbooleantrueNo description provided.
pihole.ftl.dns.specialDomains.iCloudPrivateRelaybooleantrueNo description provided.
pihole.ftl.dns.specialDomains.mozillaCanarybooleantrueNo description provided.
pihole.ftl.dns.upstreamsarray[8.8.8.8, 8.8.4.4]List of upstream DNS servers.

Advanced

KeyTypeDefaultDescription
pihole.ftl.files.databasestring"/etc/pihole/pihole-FTL.db"No description provided.
pihole.ftl.files.gravitystring"/etc/pihole/gravity.db"No description provided.
pihole.ftl.files.gravity_tmpstring"/tmp"No description provided.
pihole.ftl.files.log.dnsmasqstring"/var/log/pihole/pihole.log"No description provided.
pihole.ftl.files.log.ftlstring"/var/log/pihole/FTL.log"No description provided.
pihole.ftl.files.log.webserverstring"/var/log/pihole/webserver.log"No description provided.
pihole.ftl.files.macvendorstring"/etc/pihole/macvendor.db"No description provided.
pihole.ftl.files.pcapstring""No description provided.
pihole.ftl.misc.addr2linebooleantrueNo description provided.
pihole.ftl.misc.check.diskinteger90No description provided.
pihole.ftl.misc.check.loadbooleantrueNo description provided.
pihole.ftl.misc.check.shmeminteger90No description provided.
pihole.ftl.misc.delay_startupinteger0No description provided.
pihole.ftl.misc.dnsmasq_linesarray[]No description provided.
pihole.ftl.misc.etc_dnsmasq_dbooleanfalseNo description provided.
pihole.ftl.misc.extraLoggingbooleanfalseNo description provided.
pihole.ftl.misc.hide_dnsmasq_warnbooleanfalseNo description provided.
pihole.ftl.misc.niceinteger-10No description provided.
pihole.ftl.misc.normalizeCPUbooleantrueNo description provided.
pihole.ftl.misc.privacylevelinteger0No 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartpihole is pinned at v2.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