Reputation: 105
I ran across an article that says that the NGINX Ingress supports websockets starting at version 1.3. But this changelog mentions websocket documentation back at version 0.9.
I'm running with NGINX Ingress at version 0.23.0 and I cannot get the websocket client connection to work. It fails because the Connection header is keep-alive
instead of upgrade
. It looks like the ingress is changing it, because the connection works if I bypass the ingress and go directly to the Kubernetes service. Before I go much further, it would be good to know if this is hopeless with the version of NGINX that I currently have running.
Upvotes: 0
Views: 617
Reputation: 105
I found the problem. Our Helm charts were explicitly setting the Ingress annotation nginx.ingress.kubernetes.io/connection-proxy-header
to keep-alive
. Removed that and all is well.
Upvotes: 1