Knative's support for the Socket protocol
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?
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?
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.
What protocol does your app speak?
We use the Apache MINA framework to establish socket connections, and the protocol used is TCP
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.