From 729033d0e6d8bb94452a2604094c4a9bae0362f1 Mon Sep 17 00:00:00 2001 From: Edward Cheng Date: Sat, 20 Jul 2024 13:02:58 +1000 Subject: [PATCH] update service ports adguard-home --- scripts/ingress-nginx/patch-ingress-nginx.sh | 4 +--- .../ingress-nginx/{adguard-home.yaml => ports.yaml} | 10 ++++++++++ 2 files changed, 11 insertions(+), 3 deletions(-) rename scripts/ingress-nginx/{adguard-home.yaml => ports.yaml} (76%) diff --git a/scripts/ingress-nginx/patch-ingress-nginx.sh b/scripts/ingress-nginx/patch-ingress-nginx.sh index b1afe85..254862d 100644 --- a/scripts/ingress-nginx/patch-ingress-nginx.sh +++ b/scripts/ingress-nginx/patch-ingress-nginx.sh @@ -1,6 +1,4 @@ #!/bin/bash set -e -serviceName=$1 - -kubectl patch service ingress-nginx-controller -n argocd --patch "$(cat $serviceName.yaml)" \ No newline at end of file +kubectl apply service ingress-nginx-controller -n argocd --patch "$(cat ports.yaml)" \ No newline at end of file diff --git a/scripts/ingress-nginx/adguard-home.yaml b/scripts/ingress-nginx/ports.yaml similarity index 76% rename from scripts/ingress-nginx/adguard-home.yaml rename to scripts/ingress-nginx/ports.yaml index 4c9395e..a644c14 100644 --- a/scripts/ingress-nginx/adguard-home.yaml +++ b/scripts/ingress-nginx/ports.yaml @@ -1,5 +1,15 @@ spec: ports: + - appProtocol: http + name: http + port: 80 + protocol: TCP + targetPort: http + - appProtocol: https + name: https + port: 443 + protocol: TCP + targetPort: https - name: dns-tcp port: 53 targetPort: 53