Our cluster runs long running processes/jobs in each Pod and their states are exposed over Websocket. Since their contexts are isolated we need to make sure subsequent Websocket connections are always routed to the correct/corresponding Pod where the target process/job is being executed.
So the idea is after the process is deployed the client would be informed of its ID (name/IP) for subsequent Websocket connection to query its state - suppose sticky sessions would go out of the window here since we are talking websocket and a different client than the one deployed the process might connect to query states later…
Is there a way to ensure NGINX Ingress always directs traffic to a specific Pod by its name/IP taken from the request the URL? Like ws://xxx/channel/podname would always go to Pod with the given name? Cheers!