update service ports adguard-home

This commit is contained in:
2024-07-20 12:56:11 +10:00
parent e15d8c3930
commit 518a149959
3 changed files with 44 additions and 12 deletions

View File

@@ -39,18 +39,6 @@ controller:
service:
externalTrafficPolicy: Cluster
ipFamilyPolicy: SingleStack
ports: |-
dns-tcp: 53
dhcps-udp: 67
dns-tls-tcp: 853
dnscrypt-tcp: 5443
https-pprof: 6060
targetPorts: |-
dns-tcp: 53
dhcps-udp: 67
dns-tls-tcp: 853
dnscrypt-tcp: 5443
https-pprof: 6060
metrics:
enabled: ${metrics_enabled:=false}

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,6 @@
#!/bin/bash
set -e
serviceName=$1
kubectl patch service ingress-nginx-controller -n ingress-nginx --patch "$(cat $serviceName.yaml)"