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