From 7a78dfd0d2bec0a6811893b11930b344453ef1b9 Mon Sep 17 00:00:00 2001 From: DjCoke Date: Sun, 8 Sep 2024 17:40:05 +0200 Subject: [PATCH] Update pihole-deployment.yaml Make 2 separate services for DNS and Dashboard --- Pihole/Kubernetes/pihole-deployment.yaml | 27 ++++++++++++++++++------ 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/Pihole/Kubernetes/pihole-deployment.yaml b/Pihole/Kubernetes/pihole-deployment.yaml index f4fcfa3..c1ff059 100644 --- a/Pihole/Kubernetes/pihole-deployment.yaml +++ b/Pihole/Kubernetes/pihole-deployment.yaml @@ -99,6 +99,25 @@ spec: port: 67 protocol: UDP targetPort: 67 + - name: dns + port: 53 + protocol: TCP + targetPort: 53 + selector: + app: pihole + externalTrafficPolicy: Local + loadBalancerIP: 192.168.1.222 # this is your DNS IP, NOT THE GUI! + type: LoadBalancer +--- +apiVersion: v1 +kind: Service +metadata: + labels: + app: pihole + name: pihole-web + namespace: pihole +spec: + ports: - name: pihole-http port: 80 protocol: TCP @@ -107,12 +126,6 @@ spec: port: 443 protocol: TCP targetPort: 443 - - name: dns - port: 53 - protocol: TCP - targetPort: 53 selector: app: pihole - externalTrafficPolicy: Local - loadBalancerIP: 192.168.200.11 - type: LoadBalancer \ No newline at end of file + type: ClusterIP # Gui is only available via proxy