l7mp / stunner-gateway-operator

STUNner Kubernetes Gateway Operator
Apache License 2.0
15 stars 6 forks source link

Allow Gateways to select the target port on a per-listener basis #50

Closed rg0now closed 3 months ago

rg0now commented 3 months ago

Some use cases require tight control over the entire service spec (see https://github.com/l7mp/stunner-gateway-operator/issues/32), including the target port. One reason for that would be to route a TCP/TLS Gateway listener opened externally on port 443 to a non-privileged port (>1024) at the data plane pods.

The plan is to add yet another annotation, say, stunner.l7mp.io/targetport, to the Gateway that would allow for setting the target port on a per-listener basis. This would be similar to the stunner.l7mp.io/nodeport annotation, just affecting the target port instead of the node port, see https://github.com/l7mp/stunner/blob/main/docs/GATEWAY.md#load-balancer-configuration.