12 lines
404 B
Bash
12 lines
404 B
Bash
#!/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" |