Keeping Docker Container Active on K8s

Hello Streamlit Community!

I am experiencing an issue when deploying streamlit onto kubernetes where the pod exits after a while - I guess due to inactivity. This thread seems related, especially where @Marc describes deploying streamlit to Azure.

Is there a way to keep the streamlit server running in a docker container even when there are periods of inactivity?

Hi @rberber1, welcome to the forum :wave:

We’ve not encountered this problem ourselves. We’re deploying on GKE.

How/where is your K8s cluster deployed?

Could you provide us the server logs, so that we can see why the server process exits?