Closed krisclarkdev closed 2 years ago
Did somebody find something out about this? Im also currently trying to convert my old Raspberry PiHole into the Kubernetes one, also with Replica 2. I noticed that sometimes it will give me a "wrong Token" notice, but i think thats something different. Reason for me why it is so urgent: the SD Card of the Raspberry is dying...
The file 05-pihole-custom-cname.conf
is loaded from a ConfigMap. ConfigMaps in kubernetes are readonly. If you want to write to this file you'd have to mount it from a file mount.
To add some background: There are two principles clashing and I see a lot of people struggling to understand those. On the one side, there is the way to configure everything with files and use helm to deploy and update the installation. In this case you would normally not do any changes in the pihole UI. You can save those files and recover your installation from there. The other way would be to use the pihole UI to do changes but then you are not able to configure things in files. If you go this way you have to take care about backup and recovery yourself. I for example do my settings in files and keep them in a git repository. So I'm able to recover anytime.
@Serverfrog Replica 2 is another topic. Pihole itself does not support to share one database between multiple installations (my knowledge might be outdated so please correct me if I'm wrong). So if you have 2 replica and the loadbalancer does round-robin to access the 2 replicas you will get either the one or the other installation. So if you do manual changes you will only change one of the two instances which will lead to unforeseen consequences.
I hope I could clarify some things and please correct me if I'm talking nonesene.
I will close this issue now, if there is anything else, then please reopen it.
When adding a CNAME entry using the following values.yaml the web ui reports it has been successful but nothing populates. When checking the pod logs I get the following error
/opt/pihole/webpage.sh: line 769: /etc/dnsmasq.d/05-pihole-custom-cname.conf: Read-only file system
values.yaml