From 131a01f72f0e3af262081b5da6f6c10bec154350 Mon Sep 17 00:00:00 2001 From: Rob Watson Date: Thu, 18 Apr 2024 07:57:32 +0200 Subject: [PATCH] refactor(ingress-nginx): remove explicit port mappings --- deploy/base/svc-ingress-nginx.yaml | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/deploy/base/svc-ingress-nginx.yaml b/deploy/base/svc-ingress-nginx.yaml index d920dc1..4ece03e 100644 --- a/deploy/base/svc-ingress-nginx.yaml +++ b/deploy/base/svc-ingress-nginx.yaml @@ -1,17 +1,9 @@ --- -# Configure the ingress-nginx to use specific nodePorts for HTTP and HTTPS -# traffic. This allows the cluster to route traffic to the service via port -# mappings. +# Add nodeports to the LoadBalancer service, this makes DigitalOcean create a +# corresponding forwarding rule. # -# TODO: use a NodePort service instead and remove the patches. -- op: replace - path: /spec/ports/0/nodePort - value: 32048 -- op: replace - path: /spec/ports/1/nodePort - value: 32049 -# Force the ingress-nginx service to expose port 22. This allows traffic to be -# routed to the Gitea SSH service. +# Setting the nodePort seems to be necessary for DO to create the forwarding +# rules. - op: add path: /spec/ports/- value: