Streamlit deployed in GKE using Gloo

Hi everyone!

I’m having issues deploying my Streamlit App within GKE using Gloo on top of it. I’ve read lots of blogs so far and they explain how to deploy Streamlit Apps using Kubernetes and such, but none of them talked about deploying it using an envoy-proxy based like Gloo Edge. In general terms, Gloo acts as a Load Balancer on top of the service in K8S, the problem it has seems to be with its server configuration and the way it handle WebSockets. The error I’m getting when trying to access the app, besides the usual “Please wait …” is:

Uncaught Error: Unsupported state transition.
State: PINGING_SERVER
Event: CONNECTION_TIMED_OUT

It also says:

WebSocket connection to 'wss:/<domain>/stream' failed: WebSocket is closed before the connection is established.

I’ve tried to change configs in the server side (explicitly allowing websockets, increasing timeout and others) but no luck yet.

Has anyone been able to deploy successfully to GKE using any envoy-based proxy such as Gloo?

Thanks in advance!
David A.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.