aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/pihole
diff options
context:
space:
mode:
Diffstat (limited to 'kubernetes/pihole')
-rw-r--r--kubernetes/pihole/10-customdns.conf1
-rwxr-xr-xkubernetes/pihole/deploy.sh1
-rw-r--r--kubernetes/pihole/pihole-deployment.yaml28
3 files changed, 20 insertions, 10 deletions
diff --git a/kubernetes/pihole/10-customdns.conf b/kubernetes/pihole/10-customdns.conf
index a5c4539..af0b1b7 100644
--- a/kubernetes/pihole/10-customdns.conf
+++ b/kubernetes/pihole/10-customdns.conf
@@ -6,3 +6,4 @@ host-record=phone.lan,192.168.1.110
host-record=switch.lan,192.168.1.106
host-record=router.lan,192.168.1.200
host-record=voidbox.lan,192.168.1.103
+host-record=searx.lan,192.168.1.109
diff --git a/kubernetes/pihole/deploy.sh b/kubernetes/pihole/deploy.sh
index 7b2dc5b..52bdd90 100755
--- a/kubernetes/pihole/deploy.sh
+++ b/kubernetes/pihole/deploy.sh
@@ -2,4 +2,5 @@
kubectl apply -f ./pihole-secret.yaml
kubectl apply -f ./pihole-configmap.yaml
+kubectl create configmap local-dns-file --from-file=10-customdns.conf
kubectl apply -f ./pihole-deployment.yaml
diff --git a/kubernetes/pihole/pihole-deployment.yaml b/kubernetes/pihole/pihole-deployment.yaml
index 8f48319..cd04227 100644
--- a/kubernetes/pihole/pihole-deployment.yaml
+++ b/kubernetes/pihole/pihole-deployment.yaml
@@ -23,16 +23,24 @@ spec:
- containerPort: 80
- containerPort: 443
env:
- - name: TZ
- valueFrom:
- configMapKeyRef:
- name: pihole-configmap
- key: pihole_tz
- - name: WEBPASSWORD
- valueFrom:
- secretKeyRef:
- name: pihole-secret
- key: pihole-webpassword
+ - name: TZ
+ valueFrom:
+ configMapKeyRef:
+ name: pihole-configmap
+ key: pihole_tz
+ - name: WEBPASSWORD
+ valueFrom:
+ secretKeyRef:
+ name: pihole-secret
+ key: pihole-webpassword
+ volumeMounts:
+ - name: local-dns
+ mountPath: /etc/dnsmasq.d/10-customdns.conf
+ readOnly: true
+ volumes:
+ - name: local-dns
+ configMap:
+ name: local-dns-file
---
apiVersion: v1
kind: Service