I have a middle size asp.net core application (online store). One of the functions is uploading pictures for products. Also, I want to host my application in Kubernetes in a cloud.
I know that a common solution to this problem is to use some S3-like file storage. But my store quite little and I don't want to complicate it very much.
So I want to use some folder in mySite/wwwroot
like mySite/wwwroot/storage
to storage all pictures:
mysite.com/storage/picture.png
Is it somehow possible to map mySite/wwwroot/storage
to some persistent volume?
What hostname should I use? It is easy to mount images like Postgres because Postgres use some hardcoded folder to store data (/var/lib/postgresql/data
).
I understand that it restricts all replicas of my site only by one node.