pihole
by AlexPresso
Installs pihole in kubernetes
About this chart
Pi-hole Helm Chart
This Helm chart deploys Pi-hole, a network-wide ad blocker, on a Kubernetes cluster. It provides customizable configurations to suit various deployment needs.
Prerequisites
- Kubernetes 1.12+
- Helm 3.0+
Installation
To install the chart with the release name my-pihole:
helm repo add alexpresso https://helm.alexpresso.me/
helm install my-pihole alexpresso/pihole
Configuration
The following table lists the configurable parameters of the Pi-hole chart and their default values.
| Parameter | Description | Default |
|---|---|---|
timezone | Timezone for the Pi-hole instance | America/Chicago |
hostNetwork | Enable host network mode (recommended for DHCP) | false |
image.tag | Tag of the Pi-hole image to use | 2025.03.0 |
webinterface.password | Password for the Pi-hole web interface | (empty) |
webinterface.port | Port for the Pi-hole web interface | 8080 |
webinterface.service.enable | Enable a separate service for the web interface | true |
webinterface.service.type | Type of service for the web interface | LoadBalancer |
dns.adlist | List of URLs to ad block lists | See values.yaml |
For a comprehensive list of configuration options, refer to the values.yaml file in the chart repository.
Uninstallation
To uninstall/delete the my-pihole deployment:
helm uninstall my-pihole
The command removes all the Kubernetes components associated with the chart and deletes the release.
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 v1.2.13 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