refactor(ingress-nginx): remove explicit port mappings

This commit is contained in:
Rob Watson 2024-04-18 07:57:32 +02:00
parent d0f421d7f8
commit 131a01f72f
1 changed files with 4 additions and 12 deletions

View File

@ -1,17 +1,9 @@
--- ---
# Configure the ingress-nginx to use specific nodePorts for HTTP and HTTPS # Add nodeports to the LoadBalancer service, this makes DigitalOcean create a
# traffic. This allows the cluster to route traffic to the service via port # corresponding forwarding rule.
# mappings.
# #
# TODO: use a NodePort service instead and remove the patches. # Setting the nodePort seems to be necessary for DO to create the forwarding
- op: replace # rules.
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.
- op: add - op: add
path: /spec/ports/- path: /spec/ports/-
value: value: