I followed this tutorial and deployed a sample Streamlit app to local Kubernetes cluster (minikube). It all works fine, but in case a pod dies the users whose apps were connected to that pod gets an error message and have to refresh their pages to get the app working again (which also resets their state). Is there a way to keep their app running (with state maintained) without them knowing that the pod has died ?
Are there any best practices for deploying and horizontally scaling a Streamlit app specifically on Kubernetes ? I wonder how streamlit cloud does it