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?