I was wondering what is best way to setup a static web application in kubernetes:
- Place web app files inside the container image.
- Place web app files in a share volume (mounted to pods).
In scenario #1 for every release (minor or major), we should deploy a new image and update the deployment.
In scenario #2 since files are in a shared location (like NFS share), it is easy to update files and releases without changing the kubernetes deployment.
So what is the recommended way for this scenario?

