expose TCP and UDP services of adguard home via ingress-nginx

This commit is contained in:
2024-06-18 10:40:39 +10:00
parent 8de7bc9920
commit 9ed309c6d1
2 changed files with 42 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
spec:
ports:
- name: dns-tcp
port: 53
targetPort: 53
protocol: TCP
- name: dns-udp
port: 53
targetPort: 53
protocol: UDP
- name: dhcps-udp
port: 67
targetPort: 67
protocol: UDP
- name: dhcpc-udp
port: 68
targetPort: 68
protocol: UDP
- name: dns-tls-tcp
port: 853
targetPort: 853
protocol: TCP
- name: dns-tls-udp
port: 853
targetPort: 853
protocol: UDP
- name: dnscrypt-tcp
port: 5443
targetPort: 5443
protocol: TCP
- name: dnscrypt-udp
port: 5443
targetPort: 5443
protocol: UDP
- name: https-pprof
port: 6060
targetPort: 6060
protocol: TCP

View File

@@ -0,0 +1,4 @@
#!/bin/bash
set -e
kubectl patch service ingress-nginx-controller -n ingress-nginx --patch "$(cat ingress-nginx-svc-controller-patch.yaml)"