MoJo2600 / pihole-kubernetes

PiHole on kubernetes
493 stars 171 forks source link

Add option to disable or configure separately DNS protocols #290

Closed ilbarone87 closed 3 months ago

ilbarone87 commented 4 months ago

Some CNI, like Cilium that is largely used, do not allow to share the same port for different protocols (TCP and UDP) when using their IPAM solution. This make the use of annotation "io.cilium/lb-ipam-sharing-key: pi-hole" not possibile. Would be nice if we can have the possibility to disable the UDP protocol or having the ability to configure separately the annotations so it's not mandatory to expose the UDP protocol as well. Thanks

gkelle commented 3 months ago

Ran into a similar scenario with a Cilium-based deployment and found that there is an option to set mixedService: true in the serviceDns configuration that will create a single service for both udp 53 and tcp 53 (simply named my-pihole-dns) that should work with Cilium.

ilbarone87 commented 3 months ago

Will close this then