azure websocket connection through kubernetes, many disconnects with code 1006

9/14/2020

A nodejs server on kubernetes get many websocket connections - all is fine, but from time to time an abrupt disconnect occurs (code 1006).

Then every few minutes, the server disconnects from all clients (all disconnects have code 1006).

Important to note that this happens to all replicas at the same time, indicating the cause is external to the servers (and the clients). Could it be the application gateway?

How can I debug this further?

-- Uri
disconnect
kubernetes
websocket

1 Answer

9/17/2020

Changing from the default azure application gateway to nginx solved this problem.

-- Uri
Source: StackOverflow