From e15d8c39308bb3e1e13f4ec11a24de915e996f75 Mon Sep 17 00:00:00 2001 From: Edward Cheng Date: Sat, 20 Jul 2024 12:34:46 +1000 Subject: [PATCH] update service ports adguard-home --- apps/adguard-home/base/service.yaml | 2 +- .../ingress-nginx/env/k3s-cluster/values.yaml | 12 ++++++++++++ .../ingress-nginx-configmap/base/configmap.yaml | 13 +++++++++++-- 3 files changed, 24 insertions(+), 3 deletions(-) diff --git a/apps/adguard-home/base/service.yaml b/apps/adguard-home/base/service.yaml index e411e55..937ebcd 100644 --- a/apps/adguard-home/base/service.yaml +++ b/apps/adguard-home/base/service.yaml @@ -8,7 +8,7 @@ metadata: spec: selector: app.kubernetes.io/name: adguard-home - type: LoadBalancer + type: ClusterIP internalTrafficPolicy: Cluster ports: - protocol: TCP diff --git a/infrastructures/ingress-nginx/env/k3s-cluster/values.yaml b/infrastructures/ingress-nginx/env/k3s-cluster/values.yaml index ba77428..488aa63 100644 --- a/infrastructures/ingress-nginx/env/k3s-cluster/values.yaml +++ b/infrastructures/ingress-nginx/env/k3s-cluster/values.yaml @@ -39,6 +39,18 @@ 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} diff --git a/resources/ingress-nginx-configmap/base/configmap.yaml b/resources/ingress-nginx-configmap/base/configmap.yaml index 1722c24..2094a13 100644 --- a/resources/ingress-nginx-configmap/base/configmap.yaml +++ b/resources/ingress-nginx-configmap/base/configmap.yaml @@ -3,11 +3,20 @@ kind: ConfigMap metadata: name: tcp-services namespace: ingress-nginx -data: {} +data: + "53": "adguard-home/adguard-home:53" + "853": "adguard-home/adguard-home:853" + "5443": "adguard-home/adguard-home:5443" + "6060": "adguard-home/adguard-home:6060" --- apiVersion: v1 kind: ConfigMap metadata: name: udp-services namespace: ingress-nginx -data: {} \ No newline at end of file +data: + "53": "adguard-home/adguard-home:53" + "67": "adguard-home/adguard-home:67" + "68": "adguard-home/adguard-home:68" + "853": "adguard-home/adguard-home:853" + "5443": "adguard-home/adguard-home:5443" \ No newline at end of file