I'm currently using Envoy Gateway as the Gateway API for my Kubernetes cluster, but I don't have a load balancer set up. I know NodePort is an option, but I've heard that the port number can be chosen randomly. Is there a way for me to specify this port so I can set up firewall rules for external access?
3 Answers
You can actually set a specific NodePort in your service configuration. That way, you'll know exactly which port to open up in your firewall for external traffic. It's a lot easier than relying on randomly assigned ports!
Using NodePort, you can define a default port number for your service, which simplifies your firewall setup. Just set it in your service manifest and you’re good to go!
If you’re looking for alternatives, you have a few options: stick with NodePort and specify a port, use host networking (you'll need to track where it runs), or consider a fake load balancer like MetalLB or Cilium to handle the traffic.

Related Questions
How To Get Your Domain Unblocked From Facebook
How To Find A String In a Directory of Files Using Linux