Add pihole-debian Helm values and patch script for DNS services
This commit is contained in:
parent
8a90227173
commit
306036cb8d
12
manifests/pihole-debian-patch.sh
Normal file
12
manifests/pihole-debian-patch.sh
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# Usage: bash manifests/pihole-debian-patch.sh
|
||||||
|
# Patches pihole-debian DNS services with externalIPs after helm upgrade
|
||||||
|
set -e
|
||||||
|
|
||||||
|
kubectl patch svc pihole-debian-dns-tcp -n pihole \
|
||||||
|
-p '{"spec":{"externalIPs":["192.168.7.183"]}}'
|
||||||
|
|
||||||
|
kubectl patch svc pihole-debian-dns-udp -n pihole \
|
||||||
|
-p '{"spec":{"externalIPs":["192.168.7.183"]}}'
|
||||||
|
|
||||||
|
echo "pihole-debian DNS services patched with externalIPs"
|
||||||
54
values/pihole-debian.yaml
Normal file
54
values/pihole-debian.yaml
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
# Pihole — secondary instance on Debian node
|
||||||
|
# Pihole Helm values
|
||||||
|
# Chart: mojo2600/pihole
|
||||||
|
# Deploy:
|
||||||
|
# helm upgrade --install pihole-debian mojo2600/pihole \
|
||||||
|
# --namespace pihole \
|
||||||
|
# -f values/pihole-debian.yaml
|
||||||
|
|
||||||
|
replicaCount: 1
|
||||||
|
|
||||||
|
nodeSelector:
|
||||||
|
node-role: storage
|
||||||
|
|
||||||
|
image:
|
||||||
|
tag: "2024.07.0"
|
||||||
|
|
||||||
|
serviceWeb:
|
||||||
|
type: ClusterIP
|
||||||
|
|
||||||
|
serviceDns:
|
||||||
|
type: ClusterIP
|
||||||
|
port: 53
|
||||||
|
annotations:
|
||||||
|
kube-vip.io/loadbalancerIPs: 192.168.7.183
|
||||||
|
|
||||||
|
probes:
|
||||||
|
liveness:
|
||||||
|
enabled: false
|
||||||
|
readiness:
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
adminPassword: "changeme"
|
||||||
|
|
||||||
|
extraEnvVars:
|
||||||
|
PIHOLE_DNS_1: "1.1.1.1"
|
||||||
|
PIHOLE_DNS_2: "8.8.8.8"
|
||||||
|
|
||||||
|
dnsmasq:
|
||||||
|
customDnsEntries:
|
||||||
|
- address=/gitea.home.arpa/192.168.7.77
|
||||||
|
- address=/pihole.home.arpa/192.168.7.77
|
||||||
|
- address=/home.arpa/192.168.7.77
|
||||||
|
- address=/dashy.home.arpa/192.168.7.77
|
||||||
|
- address=/jellyfin.home.arpa/192.168.7.77
|
||||||
|
- address=/qbittorrent.home.arpa/192.168.7.77
|
||||||
|
- address=/jdownloader.home.arpa/192.168.7.77
|
||||||
|
- address=/glances.home.arpa/192.168.7.77
|
||||||
|
- address=/glances-debian.home.arpa/192.168.7.77
|
||||||
|
- address=/watch-party.nik4nao.com/192.168.7.77
|
||||||
|
|
||||||
|
persistentVolumeClaim:
|
||||||
|
enabled: true
|
||||||
|
storageClass: local-path
|
||||||
|
size: 500Mi
|
||||||
Loading…
x
Reference in New Issue
Block a user