title: Persistent volume for wwwroot/storage folder of Asp.ner Core App
body: <p>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.</p>
  
  <p>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.</p>
  
  <p>So I want to use some folder in <code>mySite/wwwroot</code> like <code>mySite/wwwroot/storage</code> to storage all pictures:</p>
  
  <ul>
  <li>It's simple to work with</li>
  <li>I can create a simple URL for my pictures like <code>mysite.com/storage/picture.png</code></li>
  </ul>
  
  <hr>
  
  <ol>
  <li><p>Is it somehow possible to map <code>mySite/wwwroot/storage</code> to some persistent volume?</p></li>
  <li><p>What hostname should I use? It is easy to mount images like Postgres because Postgres use some hardcoded folder to store data (<code>/var/lib/postgresql/data</code>). </p></li>
  </ol>
  
  <p>I understand that it restricts all replicas of my site only by one node.</p>