A lean configuration for running Pi Hole in a local Kubernetes cluster. Ideal for homelabs. Inspired by docker pi-hole
We assume a running K8s/K3s cluster.
for $v in vol1 vol2; do
mkdir -p /mnt/disks/$v
sudo mount -t tmpfs $v /mnt/disks/$v
done
./pi-hole/k3s/secret.yaml
kubectl apply -f ./pi-hole/k3s/
The repository comes with manifests to set up ingress-nginx services to access the pi-hole admin interface and forward the DNS queries to the pi-hole service.
helm upgrade --install --create-namespace --namespace ingress-nginx --repo https://kubernetes.github.io/ingress-nginx ingress-nginx ingress-nginx -f ./ingress-ngnx/helm/values/overrides.yaml
k apply -f ./ingress-nginx/k3s/
systemctl disable systemd-resolve
LoadBalancer
does not support a multi protocol setup. though the support is in the pipeline.