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

This commit is contained in:
2024-06-18 10:17:44 +10:00
parent fd3d1068b5
commit 8de7bc9920
3 changed files with 83 additions and 33 deletions

View File

@@ -25,8 +25,8 @@ spec:
extraArgs: extraArgs:
update-status-on-shutdown: "false" update-status-on-shutdown: "false"
# tcp-services-configmap: "ingress-nginx/tcp-services" tcp-services-configmap: "ingress-nginx/tcp-services"
# udp-services-configmap: "ingress-nginx/udp-services" udp-services-configmap: "ingress-nginx/udp-services"
podLabels: podLabels:
rpi5.cluster.policy/egress-kubeapi: "true" rpi5.cluster.policy/egress-kubeapi: "true"

View File

@@ -1,28 +1,22 @@
#apiVersion: v1 apiVersion: v1
#kind: ConfigMap kind: ConfigMap
#metadata: metadata:
# name: tcp-services name: tcp-services
# namespace: ingress-nginx namespace: ingress-nginx
#data: data:
# "53": "adguard-home/adguard-home:53" "53": "flux-system/adguard-home:53"
# "853": "adguard-home/adguard-home:853" "853": "flux-system/adguard-home:853"
# "5443": "adguard-home/adguard-home:5443" "5443": "flux-system/adguard-home:5443"
# "6060": "adguard-home/adguard-home:6060" "6060": "flux-system/adguard-home:6060"
# "9099": "flux-system/capacitor:9000" ---
# "10080": "adguard-home/adguard-home:80" apiVersion: v1
# "10443": "adguard-home/adguard-home:443" kind: ConfigMap
# "13000": "adguard-home/adguard-home::3000" metadata:
#--- name: udp-services
#apiVersion: v1 namespace: ingress-nginx
#kind: ConfigMap data:
#metadata: "53": "flux-system/adguard-home:53"
# name: udp-services "67": "flux-system/adguard-home:67"
# namespace: ingress-nginx "68": "flux-system/adguard-home:68"
#data: "853": "flux-system/adguard-home:853"
# "53": "adguard-home/adguard-home:53" "5443": "flux-system/adguard-home:5443"
# "67": "adguard-home/adguard-home:67"
# "68": "adguard-home/adguard-home:68"
# "853": "adguard-home/adguard-home:853"
# "5443": "adguard-home/adguard-home:5443"
# "10443": "adguard-home/adguard-home:443"
# "13000": "adguard-home/adguard-home:3000"

View File

@@ -29,7 +29,63 @@ spec:
- op: add - op: add
path: /spec/ports/- path: /spec/ports/-
value: value:
name: proxied-tcp-9099 name: dns-tcp
port: 9099 port: 53
targetPort: 9099 targetPort: 53
protocol: TCP
- op: add
path: /spec/ports/-
value:
name: dns-udp
port: 53
targetPort: 53
protocol: UDP
- op: add
path: /spec/ports/-
value:
name: dhcps-udp
port: 67
targetPort: 67
protocol: UDP
- op: add
path: /spec/ports/-
value:
name: dhcpc-udp
port: 68
targetPort: 68
protocol: UDP
- op: add
path: /spec/ports/-
value:
name: dns-tls-tcp
port: 853
targetPort: 853
protocol: TCP
- op: add
path: /spec/ports/-
value:
name: dns-tls-udp
port: 853
targetPort: 853
protocol: UDP
- op: add
path: /spec/ports/-
value:
name: dnscrypt-tcp
port: 5443
targetPort: 5443
protocol: TCP
- op: add
path: /spec/ports/-
value:
name: dnscrypt-udp
port: 5443
targetPort: 5443
protocol: UDP
- op: add
path: /spec/ports/-
value:
name: https-pprof
port: 6060
targetPort: 6060
protocol: TCP protocol: TCP