Currently mongodb runs on the same pod as the web server, but ideally it should be in a separate pod so that the web server pod can be scaled up. It can use the same Docker image, it just needs to start up the mongodb service and restore the latest backup.
Also, the server.py script must establish a remote connection to the database pod instead of using localhost. This should be possible by assigning a ClusterIP to the database pod.
Currently mongodb runs on the same pod as the web server, but ideally it should be in a separate pod so that the web server pod can be scaled up. It can use the same Docker image, it just needs to start up the mongodb service and restore the latest backup.
Also, the server.py script must establish a remote connection to the database pod instead of using localhost. This should be possible by assigning a ClusterIP to the database pod.