MoJo2600 / pihole-kubernetes

PiHole on kubernetes
503 stars 175 forks source link

Feature Request/Discussion: Allow mapping of /etc/pihole/custom.list as a configmap #297

Open andeke07 opened 5 months ago

andeke07 commented 5 months ago

I have been playing around with GitOps (argocd) and desired state configuration and would like to extend this to my Pihole to be able to configure all my DNS settings in git. In particular, my local DNS names.

Is there a possibility of mounting /etc/pihole/custom.list as a configmap? I noticed if you add a new line to this file directly in the container, the local DNS list will update, so I was hoping I could create that as a configmap which could then update the container's file any time it received an update.

I realise this would mean I could not write to that list from the pihole UI (it would get overwritten by the configmap) but I would be interested to see if I could get this working somehow.