osm icon indicating copy to clipboard operation
osm copied to clipboard

Question / Doc: Expose TCP services

Open dasMulli opened this issue 2 years ago • 4 comments

I'm unable to figure out using the documentation if/how tcp-based services can be exposed to mesh-external or cluster-external sources or if that szenario is even supported.

This includes:

  • Gradually onboarding services to the cluster but still allowing inbound TCP connections (SMTP and AMQP in my case)
  • Exposing TCP-based services (IngressBackend with protocol: tcp doesn't seem to work)

dasMulli avatar May 09 '22 08:05 dasMulli

Hi @dasMulli this can help https://release-v1-1.docs.openservicemesh.io/docs/demos/egress_policy/#tcp-egress ?

mudit-01 avatar May 09 '22 09:05 mudit-01

@mudit-01 this is about egress, i'm looking for TCP ingress

dasMulli avatar May 09 '22 09:05 dasMulli

@dasMulli OSM does not support ingress (traffic from clients outside the cluster) for raw TCP traffic. Currently, OSM only supports HTTP and HTTPS ingress. Refer to the ingress guide to learn more about what's supported.

Gradually onboarding services to the cluster but still allowing inbound TCP connections (SMTP and AMQP in my case)

Currently, this capability does not exist for TCP traffic. All server pods within the mesh can only accept mTLS connections from clients within the mesh. For HTTP traffic, applying an IngressBackend configuration is a workaround for this, but this won't work for TCP traffic.

To summarize, OSM does not have a way to allow server pods to accept TCP traffic from clients that are not a part of the mesh.

shashankram avatar May 09 '22 16:05 shashankram

What would be needed for TCP ingress? As in: does it interfere with mTLS config in other listeners / filter chains etc, parts of work that would need to be done etc.

dasMulli avatar Jun 01 '22 09:06 dasMulli

This issue will be closed due to a long period of inactivity. If you would like this issue to remain open then please comment or update.

github-actions[bot] avatar Sep 25 '22 00:09 github-actions[bot]

Issue closed due to inactivity.

github-actions[bot] avatar Oct 02 '22 00:10 github-actions[bot]