vitess-operator icon indicating copy to clipboard operation
vitess-operator copied to clipboard

[Feature Request] Expose vtgate service by nodeport or load balancer

Open tokikanno opened this issue 3 years ago • 3 comments

Generally there are 2 ways (nodeport or load balancer) to expose vtgate service to outside of k8s cluster.

Currently the Vitess cluster CRD provides the ServiceOverrides structure for us to tweak some properties of vtgate service. But this structure doesn't provide the capability for tweaking nodeport or load balancer settings.

So the only way for us to expose the vtgate service to outside k8s cluster is to add another layer of ingress gateway over the vtgate. This will cost extra overheads on the mysql connection roundtrip.

So please make it possible to expose vtgate (even other vitess related service) by nodeport or load balancer through vitess cluster CRD.


Related slack thread: https://vitess.slack.com/archives/C0PQY0PTK/p1638621405356000

tokikanno avatar Aug 24 '22 05:08 tokikanno

Hello, any news about this?

We want to avoid adding an extra layer of ingress gateway if possible.

marf avatar Nov 21 '23 19:11 marf

Another way to expose the service is to manually change the deployed service to type LoadBalancer or NodePort and (optionally) provide the IP or port to use. However, this also introduces a manual step that is best avoided. Support for different service types (LoadBalancer/NodePort) would be great addition.

ajitspendse avatar Mar 27 '24 11:03 ajitspendse