Answers: <p>In my opinion, you could create bucket (aws s3 for example) and store your data there (create simple app to make upload), thus, you don’t need to care with disk full error</p>
  
Answers: CC BY-SA 4.0
Answers: 2021-02-26T08:48:42.563Z
Answers: Thx for you answer. The problem with this solution is that I must work on the files before uploading them elsewhere. For instance some of them must be uncompressed. I only use S3 for the final upload when the file is ready but still need some local storage capacity while working on the files.
Answers: Doctor
Answers: CC BY-SA 4.0
Answers: 2021-02-26T02:59:27.993Z
Answers: 2021-02-26T02:59:27.993Z
Answers: Ruan Arcega
Body: <p>I was wondering how I could dynamically <strong>create and then mount new volumes from inside a pod ?</strong> <strong>At runtime !</strong></p>
  <p>I have to download a lot of files with very different sizes and would like the storage to adapt to my needs...</p>
  <hr />
  <p><strong>Use case example :</strong><br />
  <em>There is a decompression step. But I don't know how much will be decompressed before its completed.</em><br />
  If I could allocate some more memory at runtime It would not end with a DiskFull error...</p>
  <p>I can mount an initial volume at pod startup, then either I find a way to update this volume size or at least mount a new one in the same pod !</p>
  <p>Any ideas are welcome<br />
  Thx</p>
  
Tags: <docker><kubernetes><volume><kubernetes-volume><persistent-volumes>
Title: Update volume size dynamically from inside a POD
UserDisplayName: Doctor
ThreadText: # Update volume size dynamically from inside a POD
  
  (Asked by: username_0 on 2021-02-25)
  
  I was wondering how I could dynamically **create and then mount new volumes from inside a pod ?** **At runtime !**
  
  I have to download a lot of files with very different sizes and would like the storage to adapt to my needs...
  
  ---
  
  **Use case example :**  
  *There is a decompression step. But I don't know how much will be decompressed before its completed.*  
  If I could allocate some more memory at runtime It would not end with a DiskFull error...
  
  I can mount an initial volume at pod startup, then either I find a way to update this volume size or at least mount a new one in the same pod !
  
  Any ideas are welcome  
  Thx
  
  **Tags:** docker, kubernetes, volume, kubernetes-volume, persistent-volumes
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2021-02-26. Score: 1
  
  In my opinion, you could create bucket (aws s3 for example) and store your data there (create simple app to make upload), thus, you don’t need to care with disk full error
  
  > **Comments:**
  > **username_0**: Thx for you answer. The problem with this solution is that I must work on the files before uploading them elsewhere. For instance some of them must be uncompressed. I only use S3 for the final upload when the file is ready but still need some local storage capacity while working on the files.  
  
  ---
  
  