hi
i run both stateless w2p apps and statefull ones on kubernetes.
note that when using web2py framework with authentication you often end up with a database unless working in a read only mode.
in my architecture : for statefull apps: database backend (postgres) is externalized for production (it runs on VM cluster)
note that in this case I have to delete the app/database dir content to avoid side effects at the first connection where the database structure is discovered and synchronized with this directory.
This is done via a script when the container starts app for the first time.
For stateless I simply don't care about database directory.
Stephane