Hello!!
I have set up a microk8s cluster in my raspberry pi 4 8GB at home.
I wanna install pi-hole dns inside the cluster and expose it the LAN.
I have ingress controller enabled for accessing to the admin dashboard, but I can’t connect to the DNS itself.
I have created another service to connect to the dns pod like this:
apiVersion: v1
kind: Service
metadata:
name: pihole-service-dns
namespace: vpn
spec:
type: LoadBalancer
ports:
- name: http-53
port: 53
targetPort: 53
- name: http-67
port: 67
targetPort: 67
selector:
app: pihole
I also have enabled MetaLB and it’s showing external IP while executing the following command
microk8s kubectl get services -n vpn
It’s not working anyway.
Is there another way to set up pihole in microk8s ?
I have found this Installing PiHole On Raspberry Pi 4, MicroK8s running Ubuntu 20.04 (focal) – TIL as a Support Engineer
He is using a ClusterIP service with external IP set, but it’s not working to me. I guess it’s because I have ingress enabled and it’s capturing that traffic.
Thanks