serving icon indicating copy to clipboard operation
serving copied to clipboard

Knative's support for the Socket protocol

Open cuihao727 opened this issue 1 year ago • 5 comments

Our business requires deploying a socket server on Knative Serving and providing a fixed IP for socket connection to clients outside the cluster. However, Knative is designed for HTTP connections, and currently, I haven't found any information about Knative Serving exposing services via sockets or transport layer protocols. Is there any method available at the moment to expose a service in Knative Serving to the outside cluster using socket communication?

cuihao727 avatar Jan 24 '24 02:01 cuihao727

Our scaling is based on HTTP requests counting - so non-request based protocols aren't a good fit.

What were you looking to do with Knative specifically?

dprotaso avatar Jan 25 '24 16:01 dprotaso

Thank you for your generous response. We are attempting to deploy a Java project to Knative Serving. This Java project, acting as a server, utilizes socket communication and listens on a specific port. Clients establish socket connections by using a fixed IP and port provided by us. The transmitted request body includes an XML file, and clients invoke different business logic based on the information carried in the XML. This is an older project, and due to certain reasons on the client side, socket communication is necessary. However, we have not yet found a suitable method to achieve socket communication between clients outside the cluster and the server within Knative Serving.

cuihao727 avatar Jan 26 '24 04:01 cuihao727

What protocol does your app speak?

dprotaso avatar Jan 26 '24 14:01 dprotaso

We use the Apache MINA framework to establish socket connections, and the protocol used is TCP

cuihao727 avatar Jan 29 '24 02:01 cuihao727

This issue is stale because it has been open for 90 days with no activity. It will automatically close after 30 more days of inactivity. Reopen the issue with /reopen. Mark the issue as fresh by adding the comment /remove-lifecycle stale.

github-actions[bot] avatar Apr 29 '24 01:04 github-actions[bot]